• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
peer
............
博客园    首页    新随笔    联系   管理    订阅  订阅
09 2011 档案
iOS5:[UIDevice uniqueIdentifier]的替代方案

摘要:iOS5之后,原来获取iPhone的DeviceId的接口:[UIDevice uniqueIdentifier] 被废弃!这个改动会影响非常多的人,尤其是数据分析者。由于iPhone取IMEI困难(属于私有方法),所以大多数应用将DeviceId,也就是uniqueIdentifier作为IMEI来使用。如果这个接口被废弃,那么,我们就需要寻求一个新的方式来标识唯一的设备。官方推荐的方法是,每个应用内创建一个UUID来作为唯一标志,并将之存储,但是这个解决方法明显不能接受!原因是,你每次创建的UUID都是不一样的,意味着,你卸载后重新安装这个软件,生成的UUID就不一样了,无法达到我们将之作 阅读全文
posted @ 2011-09-16 18:37 peerlessly 阅读(4217) 评论(0) 推荐(0)
模拟NSRunLoop

摘要: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 阅读(1007) 评论(0) 推荐(0)

博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3