会员
众包
新闻
博问
闪存
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
小楼一夜听春雨
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
13
14
15
16
17
18
19
20
21
···
25
下一页
2015年5月13日
ios App 文件夹
摘要: 转:http://stackoverflow.com/questions/16561779/nssearchpathfordirectoriesindomains-nsuserdomainmaskDocumentsNSArray *paths = NSSearchPathForDirectories...
阅读全文
posted @ 2015-05-13 16:59 ximenchuixie
阅读(156)
评论(0)
推荐(0)
编辑
2015年5月5日
ios 获得指定url的cookie
摘要: NSArray *myCookies = [[NSHTTPCookieStorage sharedHTTPCookieStorage]cookiesForURL:[NSURL URLWithString:@"https://www.mywebsite.com"]]];
阅读全文
posted @ 2015-05-05 16:19 ximenchuixie
阅读(354)
评论(0)
推荐(0)
编辑
CAAnimation临时取消动画,永久取消动画
摘要: //临时取消动画 [CATransaction begin]; [CATransaction setDisableActions:YES]; mMyLayer.strokeEnd = 0; [CATransaction commit];//永久取消动画mMyLayer.actions =...
阅读全文
posted @ 2015-05-05 15:30 ximenchuixie
阅读(459)
评论(0)
推荐(0)
编辑
2015年4月28日
Objective C, erum 枚举类型
摘要: typedef NS_ENUM(NSInteger, MYENUM) { TYPE1, TYPE2, TYPE3};
阅读全文
posted @ 2015-04-28 14:28 ximenchuixie
阅读(118)
评论(0)
推荐(0)
编辑
2015年4月27日
CAShapeLayer 画直线
摘要: // from StackOverflowCAShapeLayer *layer = [CAShapeLayer layer];UIBezierPath *linePath = [UIBezierPath bezierPath];[linePath moveToPoint: pointA];[li...
阅读全文
posted @ 2015-04-27 14:42 ximenchuixie
阅读(1562)
评论(0)
推荐(0)
编辑
objective C, parse json时注意事项
摘要: 例:dict为从API请求返回的json调用NSJSONSerialization JSONObjectWithData:方法得到的NSDictionary实例。当执行以下语句时linkString不一定为NSString类型,需要进一步判断,否则当调用NSString特有的函数时(例如 [link...
阅读全文
posted @ 2015-04-27 14:12 ximenchuixie
阅读(134)
评论(0)
推荐(0)
编辑
2015年4月24日
setTranslatesAutoresizingMaskIntoConstraints
摘要: [viewItem setTranslatesAutoresizingMaskIntoConstraints:NO];在给继承UIView的类设置此属性后,UIView的某些属性可能发生变化。例如frame的位置等,还需进一步探究。
阅读全文
posted @ 2015-04-24 15:52 ximenchuixie
阅读(211)
评论(0)
推荐(0)
编辑
2015年4月23日
autolayout UILabel 设置最大宽度
摘要: label1.preferredMaxLayoutWidth = 100;label1.numberOfLines = 0; //自适应行数
阅读全文
posted @ 2015-04-23 14:02 ximenchuixie
阅读(957)
评论(0)
推荐(0)
编辑
2015年4月20日
ios push local notification
摘要: UILocalNotification* localNotification = [[UILocalNotification alloc]init]; localNotification.alertBody = @"this is a local notification"; localNot...
阅读全文
posted @ 2015-04-20 11:14 ximenchuixie
阅读(218)
评论(0)
推荐(0)
编辑
2015年4月16日
autolayout不work
摘要: 对于代码创建的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
下一页