Select Page

UDID usage rejected by Apple for iOS apps

In iOS 5+ Apple deprecated usage of the device UDID. It appears Apple started rejecting apps for using the UDID. The way to get an unique device id was: NSString *UDID = [[UIDevice currentDevice] uniqueIdentifier]; It appears this might get your app rejected…...

NSLog format specifiers

Logging has a lot of possible format specifiers. The general syntax of NSLog is: NSLog(@”Text %@”, object); NSLog(@”I want to log: %@”, myString); int i = 1234; NSLog(@”The number is: %d”, i); The possible format specifiers are: %@...

Memory management in iOS

In iOS 5 “ARC” has been introduced. ARC stands for Automatic Reference Counting. The posting below is still valid for iOS < 5. In iOS 5 the there still is reference counting, but it is automatic. Therefore ARC is no garbage collection. -----------...

Popup message in iOS with delegate

If you just want to show a popup message without responding to the buttons pressed look at the snippet : “Popup message in iOS” If you want to respond to a popup message the popup message probable has more than 1 button. To figure out what button got...

Popup message in iOS

Showing a popup message to a user in iOS is not very difficult. The code below shows a popup message with 1 button. If the user presses the button the popup message disappears. No code is executed when the uses pushes the button. (For an example with delegates look at...