How to get device UDID in programatically in iOS7.[[UIDevice currentDevice] uniqueIdentifier]
I was used this code This is deprecated iOS7. how to get the device UDID. The UDID String changing when I delete the app and the reinstall means the UDID was getting different one.
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- how do you prevent page scroll in textarea on mobi
- Custom UITableview cell accessibility not working
相关文章
- Could I create “Call” button in HTML 5 IPhone appl
- Unable to process app at this time due to a genera
- How do you detect key up / key down events from a
- “Storyboard.storyboard” could not be opened
- Open iOS 11 Files app via URL Scheme or some other
- Can keyboard of type UIKeyboardTypeNamePhonePad be
- Can not export audiofiles via “open in:” from Voic
- XCode 4.5 giving me “SenTestingKit/SenTestKit.h” f
In iOS 7, Apple now always returns a fixed value when querying the MAC to specifically thwart the MAC as base for an ID scheme. So you now really should use -[UIDevice identifierForVendor] or create a per-install UUID.
Check this SO Question.
For getting UDID: (If you're using this Might be App store guys won't allow it --> As per my concern)
For Getting UUID:
For getting UUID in Swift 3.0:
It's work 100% to all the version
other best option recommend by apple use ASIdentifierManager Class Reference
ios7-app-backward-compatible-with-ios5-regarding-unique-identifier
this link tell you how to handle and use custom framework
uidevice-uniqueidentifier-property-is-deprecated-what-now
iOS 9
or
it support only ios 6.0 and above
code to use
[[[UIDevice currentDevice] identifierForVendor] UUIDString];
ios 5 to use like
Use identifierForVendor or advertisingIdentifier.
identifierForVendor:
advertisingIdentifier:
Also, see Apple's documentation for the identifierForVendor and advertisingIdentifier.
Have 2 solutions: