iphone

How can I play a music such that it automatically replay it after its end?

AVAudioPlayer *myExampleSound; NSString *myExamplePath = [[NSBundle mainBundle] pathForResource:@"myaudiofile" ofType:@"caf"]; myExampleSound =[[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:myExamplePath] error:NULL]; myExampleSound.delegate = self; [myExampleSound play]; How can I play myExampleSound such that...

Push Notification in Iphone application.

Hi All. I need to implement push notification in my application. Actually i have to receive messages from the server. Kindly guide me how i can implement push notifications in my iphone application. ...

Change UIButton Background Image more than once per second

I am currently working with the iPhone SDK. I have a NSTimer that changes the background image of a UIButton. Once this is complete, it will trigger the same action again (reset the NSTimer) for a predetermined number of times. My problem is that if my NSTimer is set to execute more than once per second. (0.75, say) The background imag...

Changing the orientation of tabbar controller Forcefully.

Hai. In my iphone app i won't to change my tabbar orientation to landscape or portrait with out rotating the device, such that when i am pressing rotate button whole tabbar controller need to rotate for either landscape or portrait mode. can any one please give me a suggestion. ...

MPMediaickerController memory leak identified by Leaks instrument

This is code from Apple's Addmusic example. MPMediaPickerController *picker = [[MPMediaPickerController alloc] initWithMediaTypes: MPMediaTypeMusic]; picker.delegate = self; picker.allowsPickingMultipleItems = YES; picker.prompt = NSLocalizedString (@"Add songs to play", "Prompt in m...

striking through the text...

Hi All, I need to strike through the text of a multi-line label. Is there a way to do it? Any suggestion would be greatly helpful. Thanks, ...

scripting capbability in open source iphone applications

The appstore does not allow your app out of a sandbox or allow it an interpreter. But is there any issue with distributing open source iphone apps that have scripting capabilities ? ...

Creating photo album on facebook using fbconnect

hi all, is it possible to create a photo album on facebook using fbconnect Thanks ...

iPhone Fonts: set small-caps

hi all, i'm branding an iphone app and the designer wants to display list items using Georgia. This is not a big deal, but he wants them do appear as small-caps.. is this possible to do in iPhone os3? ...

Refresh displayed Camera Roll contents

Hello! I use the UIImagePickerController class to display the Camera Roll contents. I have a second thread that saves an image to the Camera Roll. When the image has finished saving, it does not appear in the Camera Roll that’s open. Is there a way to force the Camera Roll to refresh? (Other than dismissing and displaying it again.) ...

iPad custom Keyboard GUI

Hi, I want to create custom GUI for keyboard layout instead of normal layout. How can I achieve this? Can anyone help me ? Is there any built-in style/layout available or do I need to create a view for same? Thanks, Jayesh ...

iphone to connect with bloetooth credit card swipper.

I have a bluetooth card swiper, i need help to start coding for swipper. i dont find help in sdk and online. is there any other way to user blue tooth device on iphone like credit card swipper. Thanks and Regards. Deepak. ...

How to know in Xcode how much memory occupied by my object graph?

I have one big object graph. It begins from one root object and its properties are arrays which consist of other objects and so on. I want to know how much memory is eating by this graph at all. Have Xcode any instrument that will show me this information by root object (maybe something like tree of all my objects)? Or maybe it is poss...

resignFirstResponder OR - (IBAction) doneButtonOnKeyboardPressed: (id)sender

I was just wondering which approach is better to hide keyboard in iphone application 1> Implement - (IBAction) doneButtonOnKeyboardPressed: (id)sender { } Method on Textfield 's Did End On Exit Event OR In Textfield implement this -(BOOL)textFieldShouldReturn:(UITextField *)theTextField { [txtName resignFirstResponder]; retu...

Statistics regarding MonoTouch usage?

Just wondered how many application are written with MonoTouch and published in App Store? Is MonoTouch ready to be used in production? What other statistics do you know regarding this tool? ...

how can i define NSTimeInterval to mm:ss format in iphone?

how can i define NSTimeInterval to mm:ss format? ...

International keyboard and UITextField secure option

Hey, I have a UITextField in a .xib file with the secure option marked as YES. I have several international keyboards on my device. When the secure option is set to NO, I have no problem using all of the international keyboards on my device, but when it is set to YES, I am only able to use the English keyboard. Is there a way to an opt...

Run appliction on the older iphone os

hi my new app update runs only on 3.1.3 OS and some people who have older os [3.1.2] can't run the application on the iphone .. does it way to solve this ? and my app runs on 3.1.2 iphone os? ...

iPhone: how to support vertical scroll in UIPageControl

Hi, thanks in advance. I have three UITabelView in a UIPageControl, but I could't scroll the UITableView vertically, can anyone tell me how to support this feature in this scenario? Or mission impossible... Regards, xiaojun ...

Problem with memory leaks

Sorry, having difficulty formattin code to appear correct here??? I am trying to understand the readings I get from running instruments on my app which are telling me I am leaking memory. There are a number, quite a few in fact, that get reported from inside the Foundation, AVFoundation CoreGraphics etc that I assume I have no contr...