cocoa-touch

How can I save UIPickerView rows selection

Hi, I have an UIPickerView with 2 components. I would like to save the user's selection for the components. How can I do that? I have tried with NSUserDefaults but it didn't help. Thanks! ...

Waiting until an uipickerview finish rolling

Hi, I try to use a picker view for simulating some device in a gaming room, by rolling during some time and dusplaying an alertview. Unfortunately, the code doesn't work because when the animated parameter is set to YES, the next instruction forbids the picker to roll softly until the wanted value. Here's a bit of the code: [picker ...

Combining a UILongPressGestureRecognizer with a UIPanGestureRecognizer

I d'like to combine a UILongPressGestureRecognizer with a UIPanGestureRecognizer. The UIPanGestureRecognizer should start with a long press. Is there a simple way to do this? or do I really have to write my own gesture recognizer? I wan't something like on the home screen. You press on an icon and after some time the icons start wobbl...

iPhone: Adding Info button as right bar button item in navigation bar in code.

Has anyone had any success creating an info button (italic 'i' in a circle) in code (read: without Interface Builder), and then assigning it as the right bar button item of a navigation bar? I've looked everywhere, and I can't even find how to create an info button in code. Any help would be greatly appreciated. ...

How do I use custom fonts when implementing in-application email?

I'm trying to implement in-application email, but I would like to compose email using a nonstandard font. How can I write an email in my iPhone app and change the font that the email is written in? I'm trying to achieve something like this: http://vimeo.com/7512018 ...

How to rotate the imageView in a UIButton, and NOT scale it.

I am endeavouring to rotate the imageView property of a UIBUtton without scaling it. The image in question is 24x18 - wider than it is tall - but once rotated into place the image is being scaled to keep those dimension - leaving me with a very squished image. How can I prevent this? Below is my code .. -(IBAction)rotateButton { NSLog...

Determine the hardware for iPhone

How can I tell if the application is running on iPhone 4 or iPhone 3GS or an iPad? I want to determine if which hardware I'm using and then provide additional functionality if it's an iPhone 4 (such as using the video light or gyro-sensor). Any help would greatly be appreciated. Thanks PS: I'm looking to determine this programmatical...

How to switch UITableView's NSFetchedResultsController (or its predicate) programmatically?

I have a UITableView that displays a subset of a large number of entities named "Documents". The subset is defined by another entity "Selection". Selections are named, ordered list of documents. It Works fine, except when I want to change the displayed selection at run time. I get only a blank list. Basically, I need to change the pred...

Iphone interface builder

hey all my question about how the developers makes their interface the buttons, slider, segmented control and other is any program can make those thing ? and then import it to interface builder ? my brother is a graphic designer and he work a lot a 3d modeling he can make all those thing in 3ds max, maya or cinema 4D but how to tell the ...

NSURLConnection validation

I am trying to validate weather the connection was successful but have been getting inconstant results. When I try to do an synchronous request using a bogus url with: NSData *responseData = [NSURLConnection sendSynchronousRequest:request returningResponse:&response error:&error]; if (responseData) { did_send = TRUE; ...

Is it possible to change the root view of a tabBarItem so tapping takes you to the second view in the hierarchy?

In Obj-C / iOS. Our UI design calls for an initial screen with options to register or log on. After doing either of these, the user data is saved to the phone and a the tabBarController is shown. However, tapping on the tabBar at the bottom takes the view back to the "log on or register" screen. Is it possible to change the root view con...

NSBundle functionalit

Version 1 FlowCoverViewController *c; NSArray *array = [[NSBundle mainBundle] loadNibNamed:@"TestFC" owner:self options:nil]; c = [array objectAtIndex:0]; [self presentModalViewController:c animated:YES]; Version 2 [self presentModalViewController:[[NSBundle mainBundle] loadNibNamed:@"TestFC" owner:self options:nil] animated:YES]; ...

How to apply a solid color to a UISearchBar

I saw this post on SO: http://stackoverflow.com/questions/2232016/uisearchbar-solid-color But no answer was provided. I would like to know how to apply a solid color to a UISearchBar. I have applied a tintColor but it automatically creates a gradient. ...

Why would one crash log symbolicate and not another?

I have two crash logs from a iPhone application in XCode Organizer. Both occurred within 20 minutes of each other, on the same device, running the same build of the application. While one has been symbolicated the other has not. The unsymbolicated log has type and codes: Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x00000000,...

Push UIViewController onto another

Hi there. I can't seem to push a UITableViewController onto a UIViewController using the following code: [self.navigationController pushViewController:cardsViewController animated:YES]; The following code works for modally presenting the same view: [self presentModalViewController:cardsViewController animated:YES]; Does anyone kno...

Custom TableView Cell

I am working on custom tableviewcell. where I have written customcell(for 3 labels) in a separate class using IB and linked labels with outlets. than I am using this customcell in RootviewController class . I have used customcell in the method mentioned below.. but finally not getting any output in the table view... - (UITableViewCell...

How to prepare iPhone app to be able for upgrading to the latest version available on AppStore

How to prepare app to be able for upgrading to the latest version available on AppStore ...

Can I add an iPad popover programatically?

Is it possible to add a popover programatically without using a NIB file? All the examples I have run into use NIB files. Any information/help/examples would be appreciated. Thanks! ...

iPhone Video compression on/off

Hello, I have implemented video capturing by: IImagePickerController *imagePicker = [[UIImagePickerController alloc] init]; imagePicker.sourceType = UIImagePickerControllerSourceTypeCamera; NSArray *sourceTypes = [UIImagePickerController availableMediaTypesForSourceType:imagePicker.sourceType]; if ([sourceTypes containsObject:(NS...

Accessing Dropbox in your iPhone App.

Are there any Tutorials or Code Snippets available detailing how to access a users Dropbox so you can display the Data? ...