上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 25 下一页
摘要: 转:http://stackoverflow.com/questions/16561779/nssearchpathfordirectoriesindomains-nsuserdomainmaskDocumentsNSArray *paths = NSSearchPathForDirectories... 阅读全文
posted @ 2015-05-13 16:59 ximenchuixie 阅读(156) 评论(0) 推荐(0) 编辑
摘要: NSArray *myCookies = [[NSHTTPCookieStorage sharedHTTPCookieStorage]cookiesForURL:[NSURL URLWithString:@"https://www.mywebsite.com"]]]; 阅读全文
posted @ 2015-05-05 16:19 ximenchuixie 阅读(354) 评论(0) 推荐(0) 编辑
摘要: //临时取消动画 [CATransaction begin]; [CATransaction setDisableActions:YES]; mMyLayer.strokeEnd = 0; [CATransaction commit];//永久取消动画mMyLayer.actions =... 阅读全文
posted @ 2015-05-05 15:30 ximenchuixie 阅读(459) 评论(0) 推荐(0) 编辑
摘要: typedef NS_ENUM(NSInteger, MYENUM) { TYPE1, TYPE2, TYPE3}; 阅读全文
posted @ 2015-04-28 14:28 ximenchuixie 阅读(118) 评论(0) 推荐(0) 编辑
摘要: // from StackOverflowCAShapeLayer *layer = [CAShapeLayer layer];UIBezierPath *linePath = [UIBezierPath bezierPath];[linePath moveToPoint: pointA];[li... 阅读全文
posted @ 2015-04-27 14:42 ximenchuixie 阅读(1562) 评论(0) 推荐(0) 编辑
摘要: 例:dict为从API请求返回的json调用NSJSONSerialization JSONObjectWithData:方法得到的NSDictionary实例。当执行以下语句时linkString不一定为NSString类型,需要进一步判断,否则当调用NSString特有的函数时(例如 [link... 阅读全文
posted @ 2015-04-27 14:12 ximenchuixie 阅读(134) 评论(0) 推荐(0) 编辑
摘要: [viewItem setTranslatesAutoresizingMaskIntoConstraints:NO];在给继承UIView的类设置此属性后,UIView的某些属性可能发生变化。例如frame的位置等,还需进一步探究。 阅读全文
posted @ 2015-04-24 15:52 ximenchuixie 阅读(211) 评论(0) 推荐(0) 编辑
摘要: label1.preferredMaxLayoutWidth = 100;label1.numberOfLines = 0; //自适应行数 阅读全文
posted @ 2015-04-23 14:02 ximenchuixie 阅读(957) 评论(0) 推荐(0) 编辑
摘要: UILocalNotification* localNotification = [[UILocalNotification alloc]init]; localNotification.alertBody = @"this is a local notification"; localNot... 阅读全文
posted @ 2015-04-20 11:14 ximenchuixie 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 对于代码创建的UIView,将下面的选项关掉[label3 setTranslatesAutoresizingMaskIntoConstraints:NO]; 阅读全文
posted @ 2015-04-16 14:20 ximenchuixie 阅读(105) 评论(0) 推荐(0) 编辑
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 25 下一页