• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






无语_

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2012年8月23日

ios delegate方法的使用
摘要: //产生delegate类//classA.h@protocol classADelegate <NSObject> //定义delegate@optional-(void)didDelegateSuccess; //delegate方法@end@interface classA: NSObject { id<classADelegate> delgate; //绑定delegate}@property (nonatomic,retain) id<classADelegate> delgate;@end//classA.m- (void)doOk { [de 阅读全文
posted @ 2012-08-23 17:54 无语_ 阅读(187) 评论(0) 推荐(0)
 
NSUserDefaults
摘要: 新版本xocde,不可以获得设备的udid。以下是替待udid的方法:NSString* string = [[NSUserDefaults standardUserDefaults] stringForKey:@"deviceId"]; if( [string isEqual:@""]|| string==nil ) { CFUUIDRef deviceId = CFUUIDCreate (NULL); CFStringRef deviceIdStringRef = CFUUIDCreateString(NULL,deviceId); CFReleas 阅读全文
posted @ 2012-08-23 12:38 无语_ 阅读(205) 评论(0) 推荐(0)