2015年10月14日
摘要: - (NSData*)dataForHexString:(NSString*)hexString{ if (hexString == nil) { return nil; } const char* ch = [[hexString lowercaseString] cStringUs... 阅读全文
posted @ 2015-10-14 14:22 DeanLee 阅读(1219) 评论(0) 推荐(0) 编辑
  2015年5月7日
摘要: 点击cell 上面的标签的背景消失--->设置cell.selectionStyle = UITableViewCellSelectionStyleNone; 阅读全文
posted @ 2015-05-07 15:30 DeanLee 阅读(95) 评论(0) 推荐(0) 编辑
  2015年4月27日
摘要: UIUserNotificationSettings *settings = [UIUserNotificationSettings settingsForTypes:UIUserNotificationTypeBadge categories:nil]; [[UIApplication sha... 阅读全文
posted @ 2015-04-27 14:47 DeanLee 阅读(133) 评论(0) 推荐(0) 编辑
  2015年4月23日
摘要: @interface MapDetailViewController ()- (UIBarPosition)positionForBar:(id )bar { return UIBarPositionTopAttached;}状态栏和navigationbar 关联上---------------... 阅读全文
posted @ 2015-04-23 10:20 DeanLee 阅读(114) 评论(0) 推荐(0) 编辑
  2015年4月16日
摘要: updateValue(_:forKey:)Inserts or updates a value for a given key and returns the previous value for that key if one existed, ornilif a previous value ... 阅读全文
posted @ 2015-04-16 15:01 DeanLee 阅读(1304) 评论(0) 推荐(0) 编辑
  2015年4月15日
摘要: if let actualNumber = possibleNumber.toInt(){ //如果possibleNumber.toInt是一个整形赋值给actualNumber,并打印 true 分支 println("\(possibleNumber) has an integer valu... 阅读全文
posted @ 2015-04-15 14:48 DeanLee 阅读(391) 评论(0) 推荐(1) 编辑