What errors are you getting? [[UIDevice currentDevice] uniqueIdentifier]
(edited to fix API, thanks Martin!) is the officially recommended way of doing this.
More Related Contents:
- Set the location in iPhone Simulator
- Installing a configuration profile on iPhone – programmatically
- Where does the iPhone Simulator store its data?
- How can I install a .ipa file to my iPhone simulator
- iOS – color on Xcode simulator is different from the color on device
- Automated testing for iPhone [closed]
- Push Notifications in Mavericks iOS Simulator
- Adding a self-signed certificate to iphone Simulator?
- ios simulator appear with UDID in xcode 6
- How do I test a camera in the iPhone simulator?
- How to reset iPhone simulator
- Sound not working in iPhone Simulator?
- How to change Xcode Project name
- iphone – How do I add videos to iPad simulator?
- Cleaning up the iPhone simulator
- Rendering to non-power-of-two texture on iPhone
- Are the Core Image filters in iOS 5.0 fast enough for realtime video processing?
- NSDefaultRunLoopMode vs NSRunLoopCommonModes
- Weird Switch error in Obj-C
- Setting the iPhone keyboard language
- IPhone/IPad: How to get screen width programmatically?
- Where would you place your SQLite database file in an iPhone app?
- NSString: newline escape in plist
- How does -performSelector:withObject:afterDelay: work?
- motionBegan: Not Working
- How to parse an ISO-8601 duration in Objective C?
- How to convert Hex to Binary iphone
- iPhone WebApps, is there a way to detect how it was loaded? Home Screen vs Safari?
- Best Way to Perform Several Sequential UIView Animations?
- iPhone app rejected for “transferring excessive volumes of data”