Tutorial by Examples

Random UUID Swift func randomUUID() -> NSString{ return NSUUID.UUID().UUIDString() } Objective-C + (NSString *)randomUUID { if(NSClassFromString(@"NSUUID")) { // only available in iOS >= 6.0 return [[NSUUID UUID] UUIDString]; } CFUUIDRef uuidRef = ...
iOS 6 Within a single line, we can get an UUID like below: Swift let UDIDString = UIDevice.currentDevice().identifierForVendor?.UUIDString Objective-C NSString *UDIDString = [[[UIDevice currentDevice] identifierForVendor] UUIDString]; The identifierForVendor is an unique identifier that st...
You can use the IFA for measuring ad clicks and the IFV for measuring app installs. IFA has built-in privacy mechanisms that make it perfect for advertising. In contrast, the IFV is for developers to use internally to measure users who install their apps. IFA ASIdentifierManager class pr...
Here we can create UUID String with in one line. Represents UUID strings, which can be used to uniquely identify types, interfaces, and other items. Swift 3.0 print(UUID().uuidString) It is very useful for identify multiple devices with unique id.

Page 1 of 1