How to open preferences/settings with iOS 5.1?

It is little tricky , i get by the removing the subviews in *TWTWeetComposeViewController*, so it shows only alert when user is not loged in and by the clicking on setting button , we can open Setting page in my app. + (void)setAlertForSettingPage :(id)delegate { // Set up the built-in twitter composition view controller. TWTweetComposeViewController … Read more

Disable automatic screen lock in iOS 5.1

Just setting [UIApplication sharedApplication].idleTimerDisabled = YES; in – (BOOL) application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions works well for me. However, there is a caveat. I have noticed that every time I invoke camera utility to take a snapshot, idleTimerDisable gets set to NO behind the scene. So right after I upload my image, I had to call the following … Read more

build failed with: ld: duplicate symbol _OBJC_CLASS_$_Algebra5FirstViewController

It look like the class Algebra5FirstViewController is compile multiple time. Can you make sure that the .m and .mm is only included once in your project sources in Xcode? You can also confirm this by checking in the compile log (last icon at the right, next to the breakpoints icon) and see that confirm that … Read more

Is it possible to get the iOS 5.1 SDK for Xcode 4.2 on Snow Leopard?

To get Xcode 4.2 on Snow Leopard to run code on a device running iOS 5.1 you can do this: If you have another Mac running Lion and Xcode 4.3.1 you can copy the files from: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176) Place the copied files in the equivalent place on your Snow Leopard Mac: probably /Developer/Platforms/iPhoneOS.platform/DeviceSupport Similarly copy … Read more