I am working on Titanium. I tried to select the value in a textfield programmatically like
txtfieldObj.setSelection(0,value.length);
It works for me in IOS and ANDROID but not in MOBILEWEB.
Can any one give an idea to implement this in Titanium MOBILEWEB.
Thanks in Advance,
Swathi.
Related
I am developing application using Titanium and want feature to have a badge of notification in the action bar in Android as shown in attached image.
From Android native we can achieve the same using actionLayout property from the menu >> item tag.
But not clear how can we do the same using Titanium.
At least I need suggestion or guidance from where I can move ahead.
Thanks.
Check Android Notification tutorial from Titanium documentation.
There should be all you need. However, I'm not sure what do you mean by badge. There is appBadge property but it works only for iOS system.
I am new to ios 7. I have to create an iPhone App which supports ios version 6.0.I created an Empty Application and I am using StoryBoard for designing UI's.
This is the screen that is generated in ios 6.1.3. On landscape mode the design is :
I am unable to see the field Firstname and its textfield.I haven't used AutoLayout.Here is the design View in xib.
It should support both the landscape and portrait orientations.How Can I do that?
In ios 7, the same UI in simulator is :
Please help me to solve this UI Issue...
You have to uncheck the Adjust ScrollView Insets, like this to solve that issue of not showing firstname textfield.
and your other problem will be solved by using autolayout.
you need to set every view controller to edgesForExtendedLayout = UIRectEdgeNone for iOS7 version. If you set this the component alignment will be proper as per iOS6 version.
Hope this may be helpful
In my app, i need to display the status of the feedback by a Graph(chart) view.
Is webview is need?
I tried RGraph framework, which is showing errors for me, how to use this framework?
Are they're anyother ways their to achieve this?
Thanks in Advance!
Yes, this library utilizes a canvas, which you'll need a webview to display on. Some possibly helpful reading material on displaying charts:
Display Charts with Titanium
I want to launch a mobile website as an app on iPhone so I've use the UIWebView component.
I want my app to support orientation change,so I've written the following code but I'm not getting expected result.
Please suggest me what changes to be made in order to fix the problem.
Here is my code.
Perfect solution for you question,
http://developer.apple.com/library/ios/#featuredarticles/ViewControllerPGforiPhoneOS/RespondingtoDeviceOrientationChanges/RespondingtoDeviceOrientationChanges.html
which version is your test device?
you should notice that
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation is deprecated in ios6
I am currently working on an iphone app where I want to change default backgroundcolor of keyboard to black.Can anyone provide me sample example/code for implementing the same.
Thanks in advance.
Set the keyboardAppearance property of the text field to UIKeyboardAppearanceAlert. This gives a black background.
As of iOS7 you can use UIKeyboardAppearanceDark as well.