摘要:
iOS5之后,原來獲取iPhone的DeviceId的接口:[UIDevice uniqueIdentifier] 被廢棄!這個改動會影響非常多的人,尤其是數據分析者。由于iPhone取IMEI困難(屬于私有方法),所以大多數應用將DeviceId,也就是uniqueIdentifier作為IMEI來使用。如果這個接口被廢棄,那么,我們就需要尋求一個新的方式來標識唯一的設備。官方推薦的方法是,每個應用內創建一個UUID來作為唯一標志,并將之存儲,但是這個解決方法明顯不能接受!原因是,你每次創建的UUID都是不一樣的,意味著,你卸載后重新安裝這個軟件,生成的UUID就不一樣了,無法達到我們將之作 閱讀全文
posted @ 2011-09-16 18:37
peerlessly
閱讀(4218)
評論(0)
推薦(0)
摘要:
FundamentalsMost of the mysteriousness inNSRunLoopis in its variousrunmethods. What goes on in there? How does it all work?The-runmethod is pretty simple, since the documentation describes it in terms of-runMode:beforeDate::If no input sources or timers are attached to the run loop, this method exit 閱讀全文
posted @ 2011-09-16 14:56
peerlessly
閱讀(1009)
評論(0)
推薦(0)
浙公網安備 33010602011771號