cocoa-touch

How to extend UIImagePickerController with a custom view controller?

Because the default cropping frame of an UIImagePickerController (when using the setting setAllowsEditing:YES) isn't the right size for me I've created a custom view controller, like suggested here. When a thumbnail is selected from the UIImagePickerController I open this custom view controller (navigationController) from - (void)imageP...

How do I implement a login screen that uses TableView for an iphone application

Hi, I want to use a TableView for representing a Username/Password textfields dialog in a nice and grouped view. I figured the best case is to use the TableView and two cells for this. I kind of got lost in the implementation... Is there any built in cells for this that I am missing? ...

Properly displaying and dismissing fullscreen MPMoviePlayerController in iOS 3.2 (iPad)

I'm having lots of trouble displaying a fullscreen movie in my iPad app and then allowing the user to dismiss it with either the Done button or the "un-fullscreen" button on the player controls. Initially I was using MPMoviePlayerViewController for the movie presentation, but I wasn't receiving the enter/exit fullscreen notifications fr...

Iphone: threading issue ?

I am initialing a dictionary in viewDidLoad and using it to create table view cells. The first load works fine. But as soon as I scroll the table view to see the item (not displayed at the bottom) the app crashes. Through the Debugger I noticed the address of the dictionary item "rootItemsDict" changes when I did the scroll. Not able to...

Unexplained memory leak -> _stack_chk_fail

When my app starts up, I get 1 or more 4.00KB memory leaks with the frame being _stack_chk_fail and the library libSystem.B.dylib. Any suggestions on what this could be would be appreciated. Thank you. ...

Is it possible to record video with custom audio on iPhone?

So, is there any way I could record video but use my own audio for it with iPhone SDK? Thanks much for all your ideas! ...

MFMailComposeViewController and privacy - hiding the To: field?

Hi, I am creating my second iPhone app, and I've included a feedback form using MFMailComposeViewController. This displays and works correctly, but I'm not sure I want all my users to see my email address. Is there any way to set the to: field to my email address, and then hide it so that the user doesn't see it? Many thanks, Javawag ...

Focus on next valid key view on iPhone

Is there an iPhone equivalent for the NSResponder methods -selectNextKeyView or -nextValidKeyView from Mac OS X? I know about the -becomeFirstResponder method, but finding out which view to call that on is not very pretty when view hierarchies get more complicated. There must be some kind of way to find this out as when I press tab when...

Cocoa Touch - Changing the text of a button and a label

Well.. I forgot how to change the text of a button and label in cocoa touch. Please remind me.. IBOutlet id questionLabel; IBOutlet id answerButtonOne; IBOutlet id answerButtonTwo; IBOutlet id answerButtonThree; IBOutlet id answerButtonFour; ...

How to communicate between classes when both data and UI are involved?

I'm working on a largely navigation-based iPhone app that communicates with a REST API using OAuth, and I'd like to know how my classes should best communicate with each other. I've got multiple UITableViews, multiple UITableViewDataSources, an API class, and a view controller that handles authentication in a web view. Here's how I hav...

detecting iPhone app running on iPad in compatibility mode

My iPhone app (http://hexalex.com) is not universal but it has a feature that I'd like to enable for people playing on iPads. Is there some way to detect that you're running on an iPad in compatibility mode? The UIDevice methods for detecting machine specs all return the values you would get on an iPhone (on the simulator at least). T...

Media Player Playback of mov fails

I'm uploading mov files selected with the uiimagepickercontroller to my amazon s3 bucket but when I then try to play them with the media player framework, I'm told it's an invalid format. Here's one: http://s3.amazonaws.com/irovr/users/9/92f7acd7-31b5-437c-8a30-16630e869d29/DEEDBFAE-8D41-4B52-B223-AA03B3A25491.mov ...

Cocoa Touch - Deallocating IBOutlets

I used to declare IBOutlets for iPhone like so, IBOutlet UILabel *myLabel I just found out that the correct way to declare them is like, UILabel *myLabel; @property(nonatomic,retain) IBOutlet UILabel *myLabel; But with the second and correct way do you have to release each IBOutlet in the -(void)dealloc method to avoid memory leak...

Custom UINavigationController UIToolbar Background Image

I have an iPhone application using UINavigationController and would like to customize the elements with custom background images. I was able to do this for the UINavigationController's UINavigationBar pretty easily using Objective-C categories as below: http://foobarpig.com/iphone/uinavigationbar-with-solid-color-or-image-background.htm...

Designing a MIDI synthesizer/player for the iPhone

The design is divided into the following parts/features. However, I'm not very familiar with the capabilities of the iOS SDK. Midi Parser read and parse a binary file into an object Play a single or multiple sound files simultaneously can this be done with one or multiple lookup table? (a huge switch statement?) Manipulate dura...

Playing audio in Background(Iphone os 4.0)

How to play audio in background in iphone os 4.0? ...

Apple gyroscope sample code

Hi, I am planning to develop an gyroscope based project like rotating an opengl texture using gyroscope data, is there any sample code released from apple about gyroscope or any tutorial about integrating gyroscope with openGL... I searched google i didn't find anything except core motion guide and event handling guide. Updated: Please...

Problem with an array

Its broken into lines because each arrayWithObjects: adds a new question (its a quiz game). But how come when its NSLogged it only displays the last arrayWithObjects: line. Is it overwriting the others or something? -(void)loadQuizFromArrays{ //ALL QUESTION DATA GOES HERE /*theQuiz = [NSArray arrayWithObjects:@"question",@"possible...

How do I populate a predefined UITableView to a view using the interface builder

Hi, I've created a custom UITableViewCell with a label and a text field. I want to create two cells in a group to represent a nice username/password input mechanism. I've run into some troubles figuring it out (things like the delegate/dataSource). Is there a more direct approach to just add those two cells and get the data inserted int...

objective-c : iphone programming : Showing variables on UIAlert view

hi, i want simply to show a double value on a uialert view it is possible? ...