cocoa-touch

How can i apply my own interface design on iPad ?

I tried to look for a tutorial that tell me how to apply my own interface design on iPad application in (Xcode or interface builder don't know!) such as background images, overriding default button look and feel, but couldn't find anything, don't know may be i was trying the wrong keywords, Can anyone give me some good links ? Thanks ...

UIButton created in UItableview cell crashes when tapped

I created a custom UItableviewcell added a button into its initWithStyle area: favoriteButton = [[UIButton buttonWithType:UIButtonTypeRoundedRect] retain]; favoriteButton.backgroundColor = [UIColor clearColor]; [favoriteButton setTitle:@"Play" forState:UIControlStateNormal]; [favoriteButton addTarget:self action...

Add Custom buttons to Navigation Controller

I'm trying to either add 3 custom buttons to my navigation controller toolbar on the top of my view or add a segmented control with 3 options. I have the following code on my app delegate for when i create my view controller(fwc) but the buttons dont appear. /* Set up the navigation controller for the Feeding Tab */ // instan...

Get a file from iPhone

I have a program which creates some files in the application's Documents directory. I need to get those files from the device for debugging. How can I do it? I am looking for a way to not need jailbreaking, partly because I have to figure out which million letter directory to attack, and partly because I will be talking to Cupertino in ...

app runs as debug, but crashes as release

I have a program which runs fine on the device in Debug configuration, but fails as a Release. Anyone have this experience, and how do I fix it? Thx ...

iPhone - How to select and show a single record in Grouped Table View Format

Im making a iPhone app which includes a list of sports teams. RootViewController lists all the teams in a table view. When I click a row I want to load up a TeamViewController, which just shows the record for a single team. The catch is Im wanting to display that single teams details in the Grouped Table View Style. This is causing m...

Why can't new ObjC classes descend from UIViewController?

So, I've been making iOS apps since the first iPod touch came out, but something has always flabbergasted me; why is the list of new Cocoa Touch classes restricted to subclasses of NSObject, UIView, and UITableView? I routinely make subclasses of UIImageView and UIViewController. Am I "Doing It Wrong™?" Have I totally misunderstood MVC...

New NSString substringWithRange: Error Message

I'm getting an interesting new error with iOS 4: -[NSCFString substringWithRange:]: Invalid range {11, 4294967295}; this will become an exception for apps linked on SnowLeopard. Warning shown once per app execution. The error is caused by a snippet of code I got from a blog post that helps Title Case a string, and it's not going to be ...

How do I start auto recording a video in iPhone Sdk

Hi I am working on a application which requires the recroding action for the camera of the iPhone 3GS to start recording a video directly.. Earlier I have done this screwing up the UIImagePicker and using CGGraphicContext to get images but that was for a single image. Is there a possibility of triggering the vedio recording directly. W...

XML parser for iphone

what's the best XML parser for parsing RSS feed type documents on the iPhone? Ive found a few samples on the internet but kept running into memory leak problems. any suggestions? ...

Trying to create a rectangle filled with blue UIImage object.

Hi, I want to create a blue rectangle image and see it in my view, but this code doesn't seem to work: CGRect imageRect = CGRectMake(50, 50, 64, 40); UIGraphicsBeginImageContext(imageRect.size); [[UIColor blueColor] set]; UIRectFill(imageRect); UIImage *aImage = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndIma...

Playing multiple vibrates on iPhone

How can I play two or three vibrates in a row? Or different patterns of vibrate? Repeating AudioServicesPlaySystemSound(kSystemSoundID_Vibrate) does not work. Only does a single vibrate. Tried using callback OSStatus AudioServicesAddSystemSoundCompletion ( SystemSoundID ...

add UIButtons to UINavigationController?

I have a splitViewController and I would like to add a couple of buttons to the navigation bar for certain details views - is this possible? Looking at the API I only see a leftNavbarItem and a rightNavBarItem. ...

sending and receiving data with a server for an iphone app

I would like to allow my users to see other users data. I am thinking in terms of a game. I would like the users game on their phone to connect to an online score list , and store the lowest score on the list. Then if the user scores above, their score gets put into the list and stored. What does this involve exactly? Will this need e...

Remove rows from tableview based on IBAction

I have a segmented control on the top of a tableView that I would like to change the data that is loaded into the table. The segmented control has a button for day, week, month, year. If you click on one of the buttons it should only display that table data for the appropriate time period. This works fine right now when I move across t...

Cocoa Touch: How To Change UIView's Border Color And Thickness?

I saw in the inspector that I can change the background color, but I'd like to also change the border color and thickness, is this possible? Thanks ...

How to pass single touch events to super view in UIWebView?

Hi, I am using UIWebView to display pdf. I wanna handle touch events on webview. There are two conditions, my WebView should handle double touch events and gestures, and i wanna pass single tap/touch events to super view. Can any one please tell me how to differentiate the touch events in UIWebView and how to pass specific touch events...

iPhone 4 640x960

Possible Duplicate: How to differentiate between iphone4 and iphone 3 Well, I know all the @2x stuff and already read the other stackoverflow threads and apple reference regarding the retina display and high res support to no avail. I'm loading an image from a remote server which supports a resolution request parameter. For ...

Switching multiple views using a delegate

I'm developing an iPhone app that, amongst other things, allows the user to sign up, log in and logout of a remote web server. For this piece of app functionality I have 3 view controllers defined. SignupViewController LoginViewController LogoutViewController and each has a respective xib file. I want to be able to switch between v...

How do you animate the layout of the UI elements in a custom view of an iOS app?

I'd like to build a preferences screen in my iOS app that has a segmented control at the top and, depending on its state, it will determine which sliders and switches are visible, as well as where they're positioned. When you change the state of the segmented control and the layout of the screen changes, I'd like it to animate smoothly ...