Tag: ipad

NSURLConnection returns NSError with only english as language?

If i turn on Airplane mode on my iPad and trying to make a NSURLConnection i will get an error “The Internet connection appears to be offline.” If i change to any other language then english on my iPad i will still have the same error text. Shouldn’t i get the error in the current […]

Modal view controller size with master-detail controller

My app has a split master-detail interface: when the user hits a particular button in the detail side of the screen, I use a UIModalTransitionStyleFlipHorizontal modalTransitionStyle so that I can just present a new controller modally and have it appear as if the details panel has “flipped” to the new interface. While this works fine […]

iPad3 high resolution retina display issue

I am developing an app for iPad3(Retina Display) using Xcode 4.2 [iOS SDK 5.0]. I am using following code snippet for detecting retina (high-resolution) display. if ([[UIScreen mainScreen] respondsToSelector:@selector(scale)]) { NSLog(@”scale = %f”,[[UIScreen mainScreen] scale]); if ([[UIScreen mainScreen] scale] > 1.0) { NSLog(@”Retina Display iPad3″); } else { NSLog(@”Non Retina Display iPad 1/2″); } } […]

What profile can I use with CoreBluetooth?

I looking for informations about CoreBluetooth, I see iPhone4s/5 support Bluetooth 4.0 and Bluetooth LE. Also, according to this note, I can use these profiles : Hands-Free Profile (HFP 1.6) Phone Book Access Profile (PBAP) Advanced Audio Distribution Profile (A2DP) Audio/Video Remote Control Profile (AVRCP 1.4) Personal Area Network Profile (PAN) Human Interface Device Profile […]

How to read the call log on iPhone iOS 5 programmatically

I found many code samples for reading the call log on iOS 4, but it seems that this feature (reading the call log DB) is not enabled on iOS 5. So what is the work-around? Is there any (third party?) method or trick to be able to read the call log in iOS 5?

Draw text from uitextview to pdf as it is

I have 4 editable uitextviews, user can set its font font color etc. Now i want to draw pdf of these textviews, but using [self.view.layer renderInContext:UIGraphicsGetCurrentContext()] method causes to lose its quality, so i cannot use this method, instead i am iterating over subviews and drawing the text in pdf. Now my problem is that […]

UISplitViewController – Pushing Modal View

What is considered the best practise when pushing a modal view when using a UISplitViewController? Would you push from the RootViewController, the DetailViewController or directly from the Application Delegate? Ideally the functionality I am trying to achieve is to have the modal view controller displayed as soon as the UISplitViewController is loaded based on certain […]

When to use __bridge_transfer and __bridge

This question already has an answer here: Where and how to __bridge 2 answers

How to keep my app longer than 10 min. in the background?

I know that in iOS, background apps can only be running Finite-length tasks (10 min) Location updates VoIP Audio Is there a way for my application to avoid being terminated after being 10 min. in the background? I will not be submitting my app to the app store, so everything is allowed (private frameworks, using […]

how to add one or more plugin to an exist app

my company want to do a application which like a bookshelf can load more books when the the application finished, he want the application can load more plugin and will not destroy the before code, like when the app has sold in app store, the use can download the app and install it in their […]