I have a UIViewController embedding a UITextField. When the user starts editing the text field, the view of the view controller is descreased in size so that the keyboard won't cover up the textfield:
- (void)keyboardWillShow:(NSNotification *)note {
// Find the height of the keyboard
CGRect keyboardRect;
[[note.userInfo valueForKey:UIK...
Hi All,
I am writing an application that has a UITextView which allows editing. When a user first touches UITextView, a keyboard shows up and I want to retract that keyboard when user again touches the UITextView e.g. I have entered some data in a textview and with keyboard still showing on the screen I tap on the UITextView which should...
Hi...
Are there any way I can change the size of the PickerView and its position at runtime. What I do need to do was when A certain Row in A certain Component is selected I will got to show the another pickerView on the right side then the first PickerView will resize itself and change its position so that the new PickerView will be see...
hi all,
in my table of sqlite database, there are fields named id,firstName,middle, lastName
now i want to run the query as following
MyQuery = [NSString stringWithFormat:@"select id,(firstName || middlename || lastname) as Name from Students where firstname like '%@' or middlename like '%@' or lastname like '%@'",searchBarString,sear...
I will create multiple sale versions of the same application with push notifications feature:
CoolApp (full version)
CoolApp Free (free, features limited
version)
CoolApp InApp (free version
upgradable to full via InApp
Purchase)
While registering for App ID in Apple Program Portal is possible to create "Bundle seed ID": "The Bundle ...
In My application we add InAppPurchase application with MKStoreObserver.h and .m file and MKStoreManager.h and .m file in my app. we want to test my this as transaction is done or not how to do this.
...
Hi everybody,
I am trying to use the push notification service provided by apple but I am not able to get the device token required for pushing the notification. I am using the following code for retrieving the device token
- (void)application:(UIApplication *)app didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)devToken {
co...
I'm making an iPhone game in which I have two main views, the planning stage and the action stage. Both of these will have different graphics etc, but I'll obviously need to pass information between them. I've pretty much finished programming the planning stage, and I know how to switch between views, but I'm a little fuzzy on how exactl...
i like to start this animation when tilting. it doesn't, so i suppose some essential code is missing. please help:
- (void)accelerometer:(UIAccelerometer *)accelerometer didAccelerate:(UIAcceleration *)acceleration {
flap.animationImages = [NSArray arrayWithObjects:
[UIImage imageNamed: @"ronnie1.png"],
[UIImage imageName...
In my iphone app i have a text field to accept phone number. I need to display the number
in US Phone number format .That is like (000) 000-0000. Typically like iPhone Contact phone
number entry. How can i do this . Any idea will be greatly appreciated.
Thanks in advance!!!
...
I want to set the annotation to the all place of search result of google map. but i am getting the only single annotation at single point of search result.
- (IBAction) showAddress {
[addressField resignFirstResponder];
MKCoordinateRegion region;
MKCoordinateSpan span;
span.latitudeDelta=1;
span.longitudeDelta=1;
CLLoc...
I have calculated positions and offsets on paper. I have written code and debugged that I get expected results. However on iPhone Simulator things are overlapping by about 15 pixels.
To go on with my debugging, I need to know where exactly UI objects are on the screen.
Related to popup search keyboard and resizing a UITableView between...
Hi,
I have a UIViewController that is initialised with a correct frame, however somewhere in my code the frame gets mangled and I'm having difficulty finding out where.
In situations like this it is usually handy to watch a variable in the debugger, however I have no way of accessing the controller->view->frame property in my variable ...
Hi everyone .... iam new iphone developer and i built several apps . i read some books like Beginning iPhone development . but i have problem , that is i can create application based on books that i read !
How can bursting iPhone programming and build any application that i like it ?
i need some good advise . iam living in iran and there...
Hello guys,
I already did several searches on Stack Overflow and Google, but I couldn't find a solution to my problem.
I have a Detail View for a product that includes a UIScrollView and a few subviews (UIImageView, UILabel, UITextView). You can find an example here.
First I wanna autoresize the UITextView (not the text itself!) to the...
Hi folks,
I want simply to refresh my tableView (on the iPhone) when I click on the related button in the tabBar...
So, I think this has to be done this way :
[self.tableView reloadData];
Right ? And done in the
(void)tabBarController:(UITabBarController *)tabBarController didSelectViewController:(UIViewController *)viewController...
In my project I use TouchJSON to deserialize a JSON string. The result is a pretty NSDictionary. I would like to get the data in this dictionary into my domain objects / data objects.
Is there a good way to do this? Some best practices?
Perhaps the best to keep the NSDictionary and skip the domain objects?
...
I have a tabbar navigation controller, and I would like to set up a protocol in one view controller and set its delegate in another view controller. How would I get the view controller pointer of the delegating view controller to the delegate view controller?
...
Hello Everyone!!
Hope you all are fine and also in one of your best of moods!!
I herewith a problem that i am facing while implementing PDF file in iPhone.
What I want is simply display PDF files. and also Giving few Facilities like Zoom-in and Zoom-Out, Next Page navigation, Previous Page Navigation etc.
I am very clear with Readi...
Hello!
I want to create a custom UISwtich with three positions. Is it possible?
...