会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
小等
Powered by
博客园
博客园
|
首页
|
新随笔
|
联系
|
订阅
|
管理
上一页
1
2
3
4
下一页
2018年11月20日
图片转换
摘要: 有一些三方多图 返回的图片 格式 NSArray<UIImage *> *photos 而我们自己图片上传服务器是要转换一下 转成 NSArray< NSData *> *photos NSMutableArray *dataArry = [NSMutableArray array]; for (i
阅读全文
posted @ 2018-11-20 10:38 小等
阅读(122)
评论(0)
推荐(0)
编辑
2018年10月24日
实现 带颜色的字符串你好 <span style='color: red'>哇哈哈</span> 来到了 <span style='color: green'>店里</span>
摘要: NSString *str = @"你好 <span style='color: red'>哇哈哈</span> 来到了 <span style='color: green'>店里</span>"; NSAttributedString * attrStr = [[NSAttributedStrin
阅读全文
posted @ 2018-10-24 19:30 小等
阅读(3436)
评论(0)
推荐(0)
编辑
2018年9月4日
字数限制
摘要: text field [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(textViewEditChanged:) name:UITextFieldTextDidChangeNotification o
阅读全文
posted @ 2018-09-04 15:55 小等
阅读(234)
评论(0)
推荐(0)
编辑
2018年7月24日
tableview collectionView 留白
摘要: if (@available(iOS 11.0, *)) { _vCollectionView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever; }else { self.automaticallyAd
阅读全文
posted @ 2018-07-24 17:09 小等
阅读(206)
评论(0)
推荐(0)
编辑
2018年4月10日
识别图片中的二维码
摘要: //截图 再读取 UIGraphicsBeginImageContextWithOptions(currentImageView.bounds.size, YES, 0);//currentImageView 图片VIEW CGContextRef context = UIGraphicsGetCu
阅读全文
posted @ 2018-04-10 20:42 小等
阅读(551)
评论(0)
推荐(0)
编辑
2018年1月29日
适配状态栏
摘要: 出了iPhone X 导航栏都错了 以后要状态栏加44 适配导航栏了 [[UIApplication sharedApplication] statusBarFrame].size.height+44
阅读全文
posted @ 2018-01-29 15:42 小等
阅读(91)
评论(0)
推荐(0)
编辑
2018年1月15日
背景渐变
摘要: UIView = [[UIView alloc]initWithFrame:self.topIconImaView.frame]; CAGradientLayer *gradientLayer = [CAGradientLayer layer]; gradientLayer.frame = _top
阅读全文
posted @ 2018-01-15 12:26 小等
阅读(109)
评论(0)
推荐(0)
编辑
2018年1月12日
UIWebView简单应用接收页面
摘要: NSString *url;//后台给的url NSString *postStr = @"";//参数 postStr = [NSString stringWithFormat:@"参数名=%@",获取的参数]; NSData *data = [postStr dataUsingEncoding:
阅读全文
posted @ 2018-01-12 10:36 小等
阅读(107)
评论(0)
推荐(0)
编辑
2018年1月9日
UIGestureRecognizerDelegate 简单应用
摘要: 今天写 项目tableViewcell点击没反应 cell上有点击手势 先获取点击手势 加判断 self.view.userInteractionEnabled = YES; UITapGestureRecognizer *singleTap = [[UITapGestureRecognizer a
阅读全文
posted @ 2018-01-09 18:53 小等
阅读(1422)
评论(0)
推荐(0)
编辑
2017年12月20日
tableview 点击cell 出现下拉菜单
摘要: .m 中 开始走起 NSIndexPath *selectIndex;//标记cell用 - (void)viewDidLoad{ selectIndex = nil; } //cell高度改变 -(CGFloat)tableView:(UITableView *)tableView heightF
阅读全文
posted @ 2017-12-20 16:47 小等
阅读(1204)
评论(0)
推荐(0)
编辑
上一页
1
2
3
4
下一页