ios

How to know if device supports auto-focus

Hi, I would like to know if it exists a way to check if device camera supports auto-focus ? The only solution I found is to check device name in order to know if it supports auto-focus or not. But I did not like it because it did not work for future device. Regards, Quentin ...

Deprecated constant in iOS

I building an app targeting iOS 3.1.3 and later and I've run into a problem with UIKeyboardBoundsUserInfoKey. Turns out it is deprecated in iOS 3.2 and later. What I did was use the following code to use the right key depending on the iOS version: if ([[[UIDevice currentDevice] systemVersion] compare:@"3.2" options:NSNumericSearch] != N...

Analytics services/libraries available for the iPhone/iOS platform?

What analytics libraries/services are there for the iPhone/iOS platform to collect usage data about my application? At least the following services are available: Flurry Analytics Localytics Medialets Preferably the library should report as much as it can automatically, but it should also allow for tracking events defined by the appl...

iOS - Handling pushed notifications with APNS

Hello! Considering that I receive a pushed notification on my iPhone. What happens: If the application is started: is there a way to get the payload? Do I see the notification on my screen? If the application is not started, is there a way to get the payload? Thx for your answers ...

iOS - Latency of APNS

Hello! I'd like to know what is the latency between sending a message from thé APNS server to the iPhone, once the provider sent it to the APNS server? Is it few milliseconds? Few seconds? Few minutes? Thx! ...

7-ZIP (LZMA) compression for iPhone (iOS)

Does anybody know if there is an implementation of 7-Zip (LZMA) that would work on iPhone (iOS)? ...

iOS - Push Notification: does it always display a notification

Hello! I'd like to know if it is possible to send a push notification, through APNS, without displaying a notification if the application isn't started? (in this case, the message received will be thrown away) Thx ...

Scope Bar for UITableView like App Store?

Does anyone know how to add a scope bar to a UITableView? The App Store app does this sometimes, like in the picture referenced (I am not allowed to post images, sorry). I would like to use this scope bar to add sorting options for the elements in the tableview. This would be more convenient than having a toolbar with a segmentedcontrol...

No Local Variable or Arguments in Xcode 3.2/iOS 4?

I've updated a project to Xcode 3.2 and the iOS 4 SDK, and now, I don't get any local variables or arguments in gdb. I've confirmed that Debug Information Format is (still) set to "DWARF with dSYM File," the compiler is GCC 4.2 (no LLVM or Clang), and GCC_OPTIMIZATION_LEVEL is 0. Any thoughts about what I might be doing wrong? ...

iOS - UIRemoteNotificationTypeBadge & Push

Hello, If my application is started and only started. I implemented application:didReceiveRemoteNotification: to receive the payload. If a message is sent to my iPhone, is this method called for every registration type, such as the following one? [[UIApplication sharedApplication] registerForRemoteNotificationTypes:UIRemoteNotificatio...

Still confused about iPhone 4 new resolution

Hi there, I've been reading as much as I can about the new iPhone 4 high resolution (640 x 960), but am still confused. Is it basically just a bigger screen like the iPad? If so, does it automatically translate touches, ie touch in the middle of the screen becomes (320, 480), or do I have to check the device and translate the touches m...

Add an icon (mac & pc) to a file with Cocoa

I want to add an icon (icns & ico) to a file within my iPhone app and I'm not quite sure where to start looking! So when this file is viewed in Finder or Windows Explorer it will have a custom icon. Can anyone point me in the right direction? ...

Releasing IBOutlets in UIViewController’s viewDidUnload?

I’m a bit confused as to what happens exactly in Nib-based UIViewControllers. When generating a UIViewController subclass, the template contains a very specific comment in the viewDidUnload method: // Release any retained subviews of the main view. // e.g. self.myOutlet = nil; To which subviews does this apply? The ones I initialize...

Prevent duplicates when importing RSS feed to Core Data

Trying to import a RSS feed into Core Data. Once they are imported, when trying to update the feed again afterwards, how do I most efficiently prevent duplicates. Right now it checks every item against the datastore during the parsing, which is not very efficient. I looked into the Top Songs sample from Apple. It uses a least recently u...

If you could buy two books..

Addition: Think its worth having a look at this again as a number of new books havve/are being released with updates to iOS4 and the inclusion of iPad programming. Ok, I have read a number of posts regarding iPhone dev books, Cocoa and Objective-c. The general consensus seems to lead to one of 4 books. Kochans Objective-C book. Hill...

What's the Best Way to Support the Multiple Art Sizes Currently Used by iOS?

Currently iOS supports three different art sizes: art for the 480x320 original iPhone screen, art for the hi-res 960x640 iPhone 4 screen, and art for the 1024x768 iPad screen, which in my experience is usually not the same as for the hi-res screen because of the different demands placed upon the different aspect ratio of the screen. In ...

GameKit on 4.0 not ready for primetime? Stopping advertising services.

Gamekit applications running under 4.0 do not properly handle removing GKSession objects. Running under 3.1.3 or 3.2, if a peer disconnects and the session is cleaned up (as in Apple demos): [gkSession disconnectFromAllPeers]; [gkSession setAvailable:NO]; [gkSession setDelegate:nil]; [gkSession setDataReceiveHandler:nil withContext:nil]...

Creating a "My Documents" browser like in the iPad iWork Apps

Keynote, Numbers, and Pages all have a top level "My Documents" browser where you can create, delete, and select for editing all of the documents you've created so far. I'd like to create a document browser like this for an iPad app, but I am not sure where to start. I've Googled and searched here on Stackoverflow, but I haven't found a...

UIScrollView not getting new size on orientation change.

I have a very simple UIScrollView example that simply doesn't do what it's suposed to. Not sure if it's a bug with the API or a bug in my code. Basically, I've got a UIViewController with a UIScrollView as it's view. When I add it to the UIWindow and change the orientation of the iPad I log out the UIScrollViews size, which is incorrect...

AdMob on iOS 4.0

Hey everyone, I'm trying to implement Ad Based Revenue into my iPhone app on iOS 4, I've tried iAd and been less than impressed with the revenue, mostly due to my app being targetted at the UK market where iAd is not yet serving Ads. I've signed up for AdMob, downloaded the SDK and followed the included instructions with IBSupport step ...