iphone

all product identifiers are invalid in my ' in app purchase' application

app id: com.riseuplabs.newapn product id: com.riseuplabs.newapn.01 and com.riseuplabs.newapn.02 The bundle Id is correct, provisioning profile is correct, product Ids (com.vendor.appname.itemname) are relative to the bundle Id (com.vendor.appname). In creating the purchase items with unchecked "cleared for sale". I have request the pr...

MPMusicPlayerController and playing a bundled song

hai all, how can i play a song file bundled with the application using MPMusicPlayerController ? code that i tried, NSString *url = [[NSBundle mainBundle] pathForResource:@"song1" ofType:@"mp3"]; MPMusicPlayerController *myMusicPlayer=[[MPMusicPlayerController alloc] initWithContentURL:[NSURL fileURLWithPath:url]]; [myMusicPlayer p...

iPhone UITextView left/right margins

Hi, I am using the function: - (CGSize)sizeWithFont:(UIFont *)font constrainedToSize:(CGSize)size lineBreakMode:(UILineBreakMode)lineBreakMode to compute the size of a string I want to put on a text view. I want to use this size to set the dimensions of a UITextView. It seems that this function does not take care about the text view marg...

iphone app submission with other developers binary

Hey All. I am making an app that needs to be released by the client. Am I able to build and sign the final binary with my distribution certificate and send it to the client to upload? Or will I have to send them the source to compile with there own certificate? Cheers ...

How to use shared array between function calls in objective C

I have one array. I want that array to retain its value between function calls of from single class function. I have function that is called every time page is loaded. This function displays all the data stored in array right from application launches. Thanks in advance. ...

Converting Text to Image.

Hello All, How to Convert Text to Image and show in UIImageview. Can anyone know the conversion from Text to Image? ...

UIPickerView - event fired when row is highlighted

What I would like to do is this: A UIPickerView is shown. If the user touches the selected row, the row is locked (it is a multi-component picker) and the other components are free to spin. If the row has already been locked and the user touches the locked row, the row is then unlocked and free to spin. I have the locking part coded ...

How to see the keychain for iphone simulator

I have developed an iphone application in which i am encryptind and decrypting data using public and private key. I want to see this keys in the keychain. I got the keychain entry for mac applications under Applications/utilities,But what is the location for iphone simulator keychain and keychain for iphone Os itself on device. ...

Xib view file is not working in landscape mode

Hi, I have added new Xib view file in my project. I assigned to view controller and in the view controller I set: - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { //return (interfaceOrientation == UIInterfaceOrientationLandscapeRight); return YES; } But when the application runs i...

How to use two tableview in one UIViewController

How can i use two table view in one UIViewController. ...

How to draw cloud of characters in 3D with iPhone OpenGLES?

I have an NSString which is splitted into set of characters. I need to render these set as a cloud of characters and: characters must be placed in 3D characters must have random rotation and scale different fonts can be used The proper way is to use OpenGLES framework. Please advice some samples, examples or direction to start. ...

Memory allocation, release and NSURLConnection in iPhone app

I'm hoping someone can help me with this. I'm struggling to find an answer to what should be an easy question. By the way, this is my first major obj-c project after years of using c and c# so feel free to point out things I'm failing on. I have an iPhone app designed to load an album of photos into a UIScrollView. It also has a rand...

White lines on [searchDisplayController setActive] and "No results" when beginning typing.

With help of this: - (void)viewDidLoad { [super viewDidLoad]; [self.searchDisplayController setActive:YES]; [self.searchDisplayController.searchBar becomeFirstResponder]; } I wanted to show the keyboard in a search when the view loads. It works just fine, but it looks quite ugly (why the white lines in there?): When I begin to w...

How can we implement singleten design pattern in iphone code

Hi I want to implement singleten design pattern in iphone code I have one array. I want it to retain its value between function calls of from single class function. How Can I use singleten design pattern to do above task? Thanks. ...

How to make Slide show for Apple iphone

HI anyone Please let me know i need to Make a Slide show Application which can have 10 images and i need to keep all these Images in a Slide show manner ...

keeping Sounds to Button

Hi any one please Let me knw how to Keep Sounds to a Button called " Press Me " ...

How to change color of the UINavigationBar & buttons on it?

I want to change color of the UINavigationBar? Is it possible to keep different colors of UINavigationBar & buttons on it? ...

XIB File Not Loading Properly In Interface Builder

I was creating a new View-based Application in XCode, adding some outlet and actions, using the IBAction and IBOutlet tags, into the automatically created controller view header file. I then double clicked the 'project_name_ViewController.xib' to launch the interface builder. However the outlets and actions did not appear in interface b...

App crashes on fast exit+restart

I am working with a free app that calculates grades for norwegian high school students. The different subjects are stored in a sqlite database. Everything works fine, except for one thing: If i close the app and restart quickly (faster than, say, one second), it crashes. Also, this only happens if I close the app in specific circumstance...

Is there way to limit MKMapView maximum zoom level?

Hello all, the question is - is there a way to limit maximum zoom level for MKMapView? Or is there a way to track when user zooms to the level where there's no map image available? ...