Believe in your own future, will thank yourself right now Sinner Yun

Sinner_Yun

上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页

2016年5月25日

Swift +AFNetworking3.0 Get

摘要: 1 let manager = AFHTTPSessionManager() 2 let url = "http://v.juhe.cn/weather/index" 3 let params = ["format":2,"cityname":city,"key":"ead46e88f98d0cd48730bdcde2"] 4 ... 阅读全文

posted @ 2016-05-25 10:29 Sinner_Yun 阅读(443) 评论(0) 推荐(0) 编辑

2016年5月19日

iOS AFNetworking “Request failed: unacceptable content-type: text/html”问题

摘要: 使用AFNetworking出现报错: error=Error Domain=com.alamofire.error.serialization.response Code=-1016 "Request failed: unacceptable content-type: text/html" Us 阅读全文

posted @ 2016-05-19 16:37 Sinner_Yun 阅读(376) 评论(0) 推荐(0) 编辑

2016年4月22日

解决 label 多行间距

摘要: 使用。 一个是间距,一个是行高,但是鉴于多行,都写的话,就相当于双倍行高了。我就用行高代替间距。 1 self.textLabel.attributedText = [self getAttributedStringWithString:self.textString lineSpace:0 bas 阅读全文

posted @ 2016-04-22 10:36 Sinner_Yun 阅读(393) 评论(0) 推荐(0) 编辑

2016年4月12日

iOS 不让自动锁屏

摘要: [UIApplication sharedApplication].idleTimerDisabled=YES; 阅读全文

posted @ 2016-04-12 15:07 Sinner_Yun 阅读(257) 评论(0) 推荐(0) 编辑

2016年4月6日

最新版 CocoaPods 的安装流程

摘要: 1.移除现有Ruby默认源 $gem sources --remove https://rubygems.org/ 2.使用新的源 $gem sources -a https://ruby.taobao.org/ gem sources -a https://gems.ruby-china.org/ 阅读全文

posted @ 2016-04-06 17:32 Sinner_Yun 阅读(506) 评论(0) 推荐(0) 编辑

2016年3月29日

线程、同步异步、队列

摘要: 打印结果 2016-03-29 16:33:07.522 neeq_second[903:130796] wo ca lei ge da ye 1 2016-03-29 16:33:07.523 neeq_second[903:130796] wo ca lei ge da ye 3 2016-03 阅读全文

posted @ 2016-03-29 16:38 Sinner_Yun 阅读(356) 评论(0) 推荐(0) 编辑

2016年3月15日

立即响应ScrollView上的子视图的手势

摘要:   写了一个继承scrollview的类,并在里面实现了touch事件,但是如果要相应touch事件,必须要先让手指在scrollview上停留一会,否则,手指一滑动,直接进scroll的事件了,根本不会触发touch事件。 下面是我在scrollview里面重写的touch事件,那几个NSLog如 阅读全文

posted @ 2016-03-15 11:50 Sinner_Yun 阅读(402) 评论(0) 推荐(0) 编辑

2016年3月11日

iOS判断是模拟器还是真机

摘要: [代码]iOS判断是模拟器还是真机 #if TARGET_IPHONE_SIMULATOR//模拟器 #elif TARGET_OS_IPHONE//真机 #endif 阅读全文

posted @ 2016-03-11 17:35 Sinner_Yun 阅读(533) 评论(0) 推荐(0) 编辑

2016年3月7日

Generate a Push Certificate

摘要: To send Push notification to an application/device couple you need an unique device token (see the ObjectiveC page) and a certificate. Generate a Push 阅读全文

posted @ 2016-03-07 18:06 Sinner_Yun 阅读(608) 评论(0) 推荐(0) 编辑

2016年3月1日

iOS一段文字设置多种颜色格式

摘要: 调用 1 [self fuwenbenLabel:contentLabel FontNumber:[UIFont systemFontOfSize:15] AndRange:NSMakeRange(6, 1) AndColor:RGBACOLOR(34, 150, 253, 1)]; 方法 1 // 阅读全文

posted @ 2016-03-01 17:14 Sinner_Yun 阅读(237) 评论(0) 推荐(0) 编辑

2016年2月24日

去掉导航栏下 细线

摘要: 1 //去除bar下方 线 2 if ([self.navigationController.navigationBar respondsToSelector:@selector( setBackgroundImage:forBarMetrics:)]){ 3 NSArray *list=self.navigationController.navigatio... 阅读全文

posted @ 2016-02-24 11:19 Sinner_Yun 阅读(465) 评论(0) 推荐(0) 编辑

2016年2月19日

应用内直接跳转到Appstore

摘要: 1 iOS开发中,应用内直接跳转到Appstore 2 1.进入appstore中指定的应用 3 NSString *str = [NSString stringWithFormat: @"itms://itunes.apple.com/us/app/san-ban+/id1050067747?l= 阅读全文

posted @ 2016-02-19 17:40 Sinner_Yun 阅读(304) 评论(0) 推荐(0) 编辑

APP强制退出

摘要: 第一种方法: 企业版可以用,Appstore可能被拒,慎用 1 - (void)exitApplication { 2 3 AppDelegate *app = [UIApplication sharedApplication].delegate; 4 UIWindow *window = app. 阅读全文

posted @ 2016-02-19 10:42 Sinner_Yun 阅读(376) 评论(0) 推荐(0) 编辑

2016年1月26日

iOS最全的常用正则表达式大全

摘要: 很多不太懂正则的朋友,在遇到需要用正则校验数据时,往往是在网上去找很久,结果找来的还是不很符合要求。所以我最近把开发中常用的一些正则表达式整理了一下,包括校验数字、字符、一些特殊的需求等等。给自己留个底,也给朋友们做个参考。校验数字的表达式数字:^[0-9]*$n位的数字:^\d{n}$至少n... 阅读全文

posted @ 2016-01-26 14:54 Sinner_Yun 阅读(307) 评论(0) 推荐(0) 编辑

2016年1月9日

unbutton 内部title label多行显示

摘要: 1 dateBtn1.titleLabel.lineBreakMode = NSLineBreakByWordWrapping;2 [dateBtn1 setTitle: @第一行\n第二行" forState: UIControlStateNormal]; 阅读全文

posted @ 2016-01-09 17:51 Sinner_Yun 阅读(338) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页

导航