Stunner
Stunner

Reputation: 530

Query not giving result in iOS 7

I am using sqlite in my application and have a query that is working fine in iOS 6/ iOS 5 but not giving the result in iOS 7 The query is:

 Select `user_name`, `user_udid`, `id_ipad` from tablename WHERE user_id ='%@' AND id_ipad = 1 LIMIT 0,1",[[UIDevice currentDevice] uniqueIdentifier]]

and In it

[[UIDevice currentDevice] uniqueIdentifier] 

returns the correct value.

I there any changes done in SQlite database for iOS 7? Or Some Methods get depricated..? or .. Is there is any special character used in the query not to be used for iOS 7..?

Please help

Upvotes: 0

Views: 142

Answers (1)

enadun
enadun

Reputation: 3307

The reason is UIDevice.uniqueIdentifier has been removed from the UIDevice class in iOS 7.

Use the identifierForVendor property of this class or the advertisingIdentifier property of the ASIdentifierManager class instead

For more details, go to this link.

Upvotes: 1

Related Questions