ios4

delete/add button not showing in UITableViewCellStyleDelete/UITableViewCellStyleInsert

Hi guys, I have a plain ol UITableView, and I want its cells to have the delete button on the left. I know this is done using UITableViewCellStyleDelete. I set up my tableview like so: adjustmentTable.rowHeight = 35.0; [adjustmentTable setEditing:YES animated:YES]; adjustmentTable.allowsSelectionDuringEditing = YES; adjustmentTable.us...

Why doesn't my app ask to use the user's current location when it's downloaded from the App Store?

Hello. I just got my first app approved on the App Store (Woohoo!) and it runs slightly differently depending on whether it's installed from my development machine or the App Store. When I install and run the App in release mode from my development machine, the app opens and asks the user if it can use their current location. When I i...

Is there a way to re-trigger asking the user if the iPhone can use their current location?

For some reason, my iPhone app doesn't ask the user for permission to use their current location when the app is installed from the App Store. Because of this, my app's location-based functionality doesn't work. I'd like to catch the error and re-trigger the functionality that asks the user for permission to use their current location....

iPhone - UIImagePickerController setVideoQuality UIImagePickerControllerQualityType640x480 having no effect

Hey guys, I'm trying to allow users to record or choose a video in my iPhone app, limited to 30 seconds. The videos are uploaded to my web-server, then played back in the app using UIWebView. The app happily plays back recorded videos, but on older iPhones (3G for example) it won't play videos that were chosen from the camera roll. T...

Why does MPMoviePlayerController prevent resumption of audio after the movie ends?

I have a class that plays a repeating background music loop with an AVAudioPlayer, and on specific occasion, plays a full-screen video with its own sound track using MPMoviePlayerController. In order to to have only one track at a time, I stop the background music before launching the video: -(void)startVideo{ [backgroundMusic stop]...

How to detect an incoming call and start my app?

Hi All, I want to develop an iPhone callerID application. I have following challenges to develop How to detect incoming call? Need to start my app when an incoming call occurs Please help me out..I am new to iPhone development. Thanks, Srikanth ...

how can I do make MKMapView's pin moving on Photo Album Places view of ios4

In iOS4's photo album place, the photo-pins join and split each others when the map is zoomed out and in. It's awesome experience! and I want to use same thing on my apps. I guess, it should not be one of MapKit. does anybody know that how can i do this? ...

Question about naming conventions for Cocoa/Objective-C for iPhone (with respect to release and autorelease)

Can you describe the naming convention difference between a method that returns an object it has allocated for the caller (and that the caller should release), and a method that returns an autorelease object? ...

iPhone Question about properties

If you declare a property with a retain attribute, do you need to release the property before you set it to nil? What does the @synthesize directive do? ...

How to receive ALAssetsLibraryChangedNotification in iOS 4 while in background

I would like to register my iOS 4 app as an observer for ALAssetsLibraryChangedNotification and receive notifications when changes happen to the camera roll and photo library. The most obvious scenario is: 1) My app enumerates photo contents using ALAssetsLibrary. 2) Leave my app (goes into background) and launch the camera app. 3) Take ...

Millisecond sleep in C on iOS4

Im trying to sleep for a specified amount of millisecond in C on iphone but I keep getting some complaints on the console: Detected an attempt to call a symbol in system libraries that is not present on the iPhone: nanosleep$UNIX2003 called from function ... Detected an attempt to call a symbol in system libraries that is not present o...

iOS SDK 4.0 (Multitasking) issue

I have an iphone application developed on SDK-3.0. Now i want to port that application to SDK 4.0 because of multitasking, i want to keep my app alive in background. Problem is that i could not find any documentation who teach me where i start from to port my app on to SDK4.0 and brief me how i do multitasking in it. ...

playing intro movie on ipad

i am trying to play an intro movie (like a splash screen). it used to work fine for sdk 3.0 but now i am doing it for iPad. and its not running movie instead it just show black screen before view appears. here is my code (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { NSStr...

Creating a custom loading screen on iPhone

I'd like to create a View/Window that performs some inital loading in my application. I tried something like this: StartWindow *start = [[StartWindow alloc] initWithNibName:@"Start" bundle:nil]; self.startWindow = start; [start release]; [window addSubview:startWindow.view]; And in the viewDidLoad event inside StartWindow for the t...

Signal strength measurements of Mobile Networks in iOS and/or Android?

Can you get signal strength measurements of Mobile Networks in iOS and/or Android? On developer.apple.com I have found CoreWLANWirelessManager sample code for OSX, that shows how to get measurements for WiFi networks. ...

How do I handle other audio playing, in light of multitasking, in iOS?

In the Audio Session Cookbook there is a section on "Checking if Other Audio is Playing During App Launch". I'm using MonoTouch (but feel free to give an Objective-C answer, the API is the same), so the code from that document looks something like this: bool otherAudioPlaying = AudioSession.OtherAudioIsPlaying; if(otherAudioPlaying) ...

iPhone 3G with iOS 4.1 reboots while debugging

I'm using Xcode 3.2.4. Has anyone ever experienced this? Here's the console message that I had gathered: 10/22/10 10:53:58 PM Xcode[70765] _NotificationSocketReadCallback (thread 0x1170b0000): Unexpected connection closure... 10/22/10 10:53:58 PM Xcode[70765] Got faceplant notification 10/22/10 10:53:58 PM Xcode[70...

How to get file size and current file size from NSURL for AVPlayer iOS4.0

self.player = [[AVPlayer playerWithURL:[NSURL URLWithString:@"http://myurl.com/track.mp3"]] retain]; I am trying make a UIProgressView for the above track. How do I obtain the file size and current file size from that URL? Please help, thanks! ...

Compile PHP with GD for iPhone OS 4.1

The Goal: have a working version of PHP with the GD library working on an iPod Touch 4th Gen. The Status: PHP is working on the iPod (lighttpd + PHP 5.2.8 + sqlite3) without GD. When trying to compile PHP on the iPod I get this error: http://pastebin.com/kUmgq70G The Proposed Solution: Can anyone point me in the direction of how to...

Trying to understand CMTime and CMTimeMake

1) CMTimeMake(1,10) means duration of 1 second and timescale of 10, or 10 frames per second. This means 1s duration of video with 10 frames? 2) CMTime lastTime=CMTimeMake(1,10); CMTime frameTime=CMTimeMake(1, 10); CMTime currentTime=CMTimeAdd(lastTime, frameTime) = (2, 10) ? 2 seconds of video and with 10 frames per second of the c...