iphone

(iPhone) how to implement draggable pins using OS 4.0 MapKit?

Can anyone provide any sample code/instructions for implementing draggable pins in OS 4.0 using the MapKit framework? ...

convert apple recording formats to WAV format

Hello, How to convert Apple recording formats to WAV format ? As said in Audio Queue Service Programming Guide, the apple recording formats are Apple Lossless iLBC IMA/ ADPCM u-Law and a-Law So if i record an audio in any of these formats, how to convert it into WAV format? Thank you. ...

Cannot get the MPMoviePlayerViewController to play my media file

Having some issues getting this MPMoviePlayerViewController to work. I have two sample URLs pointing to the same Quicktime movie. The commented out URL doesn't work; the other one works fine. I've monitored both via Fiddler and I can't see any issues in headers/etc. Basically I'm trying to figure out a way to play an Azure hosted med...

How to pass the parameters from a user-defined to delegate method in objective C (iPhone)

Hi, everyone I want to ask about the passing parameter in objective C on iPhone simulator. Is it possible to pass an parameter (e.g. NSArray) to the delegate method? I wrote a program, when the user press a button, it will call a function called 'pressLoginButton' (user-defined). After complete the function, I have to pass an NSArray ...

iphone paging scroll view based on WWDC 2010 presentation

Hey guys, im trying to build basically a paged scroll image view like the photos app. There is both source code and the videos explaining alot of how apple built their photo app (its video 104 from WWDC on iTunes U) has anyone worked with this code? I keep trying to put in my own images and they dont work. yet, when i get rid of the ti...

Glow effect in UITextView

Can glow effects be applied on text inside UITextView? If so, how? ...

How to vibrate iPhone while playing music

I am trying to vibrate the iPhone using AudioServicesPlaySystemSound(kSystemSoundID_Vibrate) while playing iPod music with the MediaPlayer framework, but I can't get the vibrate to work while the music is playing. I can play a sound at the same time as the iPod music using the following code, but the vibrate doesn't seem to work. [music...

Video with iPhone 3.0 OS application getting crash while running in iphone 4.0 OS.

Hi, I am having a crash issue while playing video in iphone 4.0 OS. Actually, I have created application with base SDK 3.0 and now i am just installing application to 4.0 OS device. It is not working in that... I have debugged that issue and found that in 4.0 OS, apple change the framework and methods to play the video. Any one help m...

Putting iPhone into Sleep Mode Programatically

Hi all, I had used the following code to prevent the iPhone from entering the sleep mode. [UIApplication sharedApplication].idleTimerDisabled=YES But is it possible to put the iphone in Sleep mode programatically ? Thanks ...

How can I modify an existing UIViewController to allow scrolling?

I have already built a UIViewController subclass with a bunch of controls in it, and just realized that if I rotate the iPhone, half of the controls become invisible. So, I would like to somehow make the UIViewController's UIView scrollable so that when the device (or the Simulator) rotates, the user can scroll the view to see all the co...

Actionscript style events in Objective-C?

I'm a newbie doing Objective-C, coming from Flex/Actionscript development. I have an iPhone app with an UIApplicationDelegate conforming delegate called MyAppDelegate - it has a UIWindow. Instead of adding buttons, labels and whatnot directly to the window, I guess I'm supposed to make a child class of UIViewController for every screen...

iPhone Push Notification - How to use default sound

Hello All... I have implemented whole push notification service for my application using easyapns. I have implemented the server part using php and using the default php classes provided by easyapns. Now, from server (php file), i am passing sound file name like : $apns->addMessageSound('bingbong.aiff'); And I am including this 'bi...

UIPopover for iphone 4.0

Hi,i would like to know whether iphone 4.0 supports UIPopover?I have tried using but i got this msg in console:Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIPopoverController initWithContentViewController:] called when not running under UIUserInterfaceIdiomPad.' Thanks. ...

Iphone MPMoviePlayer Notification

Hi, I am using a MpMoviePlayerController To play video in my aap. I want to handle the notification sent by tapping the control button displayed in the red circle in below image. Can any one help me out which notification does this control button fires??? UPdates: I tried it in this way, NSString * filePath = [[NSBundle mainBundle] ...

show current location along with destination on same map for iphone

I am using the following code to display a map of destination: NSString * theAddress = [myString stringByAddingPercentEscapesUsingEncoding: NSUTF8StringEncoding]; NSString *urlString = [NSString stringWithFormat:@"http://maps.google.com/maps/geo?q=%@&output=csv", theAddress]; NSString *locationString = [[[NS...

iphone contents of html>string

How do you load the contents of a local html file similar to this (simplified) <html> <body> some text and <p>'s and stuff here </body> </html> into a UIWebView on the iphone? The html code is stored in a .html file and the UIWebView is called contentLabel I have tried : [contentLabel loadRequest:[NSURLRequest requestWithURL:[NSUR...

question related to Push Notification of iphone

whenever my application is not running at that time, server sends me Push Notification In that Push notification I will get message but that message is coming too small Is there any way so that server can send me a long message???? ...

Serialize an Array of data

I currently write to and read from an array of data, and use the index of each element to achieve something. I need a way to store this array, I looked at the user defaults, but that stores a dictionary, with retieval using keys. I will not know what key was stored. What is the best was to store ths array of data on the iphone? Regards...

initialization makes integer from pointer without a cast

here is the code, where listArray is NSMutableArray ...... listArray = [[NSMutableArray alloc] initWithCapacity:100]; for ( int i = 0 ; i < 100 ; i ++ ) [listArray addObject:[NSNumber numberWithInt:i]]; .... for(int max=99; max >= 0 ; max --) { int rN = (arc4random() % max) + 0; //Warning 1: initializatio...

Help with in-App Purchase timeout

Hello, I've designed my In-App purchase to work perfectly thanks to the well-written in-App Purchase Programming Guide. Unfortunately, I have run into one last snag. My app runs entirely offline except for this one purchase - so I'm hoping there's a simple solution without having to implement tons of net code. Basically, if I try to ...