会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
YouNeedCourage
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
6
7
8
9
10
11
12
下一页
2016年2月23日
集成友盟分享遇到的问题
摘要: twitter平台创建应用的方法:http://bbs.mob.com/forum.php?mod=viewthread&tid=119&extra=page%3D1%26filter%3Dtypeid%26typeid%3D34 集成twitter,设置完appid和secret之后崩溃的原因及解
阅读全文
posted @ 2016-02-23 13:01 YouNeedCourage
阅读(227)
评论(0)
推荐(0)
2016年2月1日
UITableViewCell,一些不固定显示的控件,动态隐藏有时会显示不正确的解决办法。
摘要: hidden不能只写在自定义的cell类中,而是在判断条件中进行,不需要隐藏的重新设置为显示。 if (model.voice == nil) { cell.textContent.text = model.synopsis; cell.textContent.hidden = NO; cell.t
阅读全文
posted @ 2016-02-01 11:27 YouNeedCourage
阅读(620)
评论(0)
推荐(0)
2016年1月27日
NSDate NSString时间字符串 NSTimeInterval 的转换
摘要: //时间格式NSDateFormatter *formatter = [[NSDateFormatter alloc] init];[formatter setDateFormat:@"MMM dd,yyyy HH:mm tt"];//时间字符串NSDateNSDate *date = [forma...
阅读全文
posted @ 2016-01-27 10:29 YouNeedCourage
阅读(2940)
评论(0)
推荐(0)
2016年1月26日
设置UITextfield不能编辑
摘要: 遵守UITextFieldDelegate 协议, 设置 tf.delegate = self;然后在该方法中这样做- (void)textFieldDidBeginEditing:(UITextField *)textField { UITextField *tf = [self.view vi...
阅读全文
posted @ 2016-01-26 12:52 YouNeedCourage
阅读(1008)
评论(0)
推荐(0)
2016年1月25日
开发中遇到的的报错原因及解决办法
摘要: 1.linker command failed with exit code 1 (use -v to see invocation) 错误; 一种原因是因为导入头文件的时候导入了.m文件
阅读全文
posted @ 2016-01-25 13:21 YouNeedCourage
阅读(263)
评论(0)
推荐(0)
2016年1月22日
向服务器上传图片的时候,如果图片大小超过服务器限制,需要对图片进行压缩,下面是压缩方法
摘要: //循环压缩,知道服务器限制,我这边的限制是2MB for (int i = 0; i 2*1000*1000) { img = [LDUnity compressImageWith:img]; NSLog(@"第%d次压缩 === %lu...
阅读全文
posted @ 2016-01-22 19:35 YouNeedCourage
阅读(2227)
评论(0)
推荐(0)
2016年1月20日
iOS集成支付宝遇到的问题
摘要: 原文地址 http://www.knowsky.com/884767.html生成 privateKey http://blog.sina.com.cn/s/blog_6451df3d0102vl67.html① 打开终端 输入openssl② 生成RSA私钥openssl>genrsa-outr...
阅读全文
posted @ 2016-01-20 13:25 YouNeedCourage
阅读(131)
评论(0)
推荐(0)
2016年1月11日
隐藏自定义的tabbar
摘要: 由controllerA推出controllerBA中:- (void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; UIView *tabbar = [self.tabBarController.view vi...
阅读全文
posted @ 2016-01-11 16:57 YouNeedCourage
阅读(342)
评论(0)
推荐(0)
图片放大预览(支持多张,支持双击放大)
摘要: 使用方法 JZAlbumViewController *album = [[JZAlbumViewController alloc] init]; album.imgArr = self.imgsArray;//可以是图片的url字符串数组,亦可以是UIImage album.currentIn...
阅读全文
posted @ 2016-01-11 16:19 YouNeedCourage
阅读(1649)
评论(0)
推荐(0)
iOS9适配https
摘要: 在info.plist文件中,新增一个:NSAppTransportSecurity ,打开,加多一个NSAllowsArbitraryLoads 并且设置为YES就OK了
阅读全文
posted @ 2016-01-11 11:20 YouNeedCourage
阅读(133)
评论(0)
推荐(0)
上一页
1
···
6
7
8
9
10
11
12
下一页
公告