会员
周边
新闻
博问
AI培训
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
i兮兮
博客园
首页
新随笔
新文章
联系
订阅
管理
2018年2月1日
用UICollectionView实现点击展开收缩的cell
摘要: #import "GoodsToSaleViewCell.h" #import "GoodsOnSaleController.h" #import "GoodsToSaleViewCell.h" @interface GoodsOnSaleController ()<UICollectionView
阅读全文
posted @ 2018-02-01 11:17 i兮兮
阅读(775)
评论(0)
推荐(0)
编辑
2017年12月4日
怎样在导航条上添加多个item
摘要: 情况一:右侧两个按钮 //为导航栏添加右侧按钮1 UIBarButtonItem *right1 = [[UIBarButtonItem alloc] initWithImage:[[UIImage imageNamed:@"my_share"] imageWithRenderingMode:UII
阅读全文
posted @ 2017-12-04 08:33 i兮兮
阅读(248)
评论(0)
推荐(0)
编辑
2017年11月28日
一组按钮,其中一个选中,其余取消选中效果
摘要: 第一,定义一个全局的按钮变量 @property (nonatomic, strong) UIButton *selectedBtn; 第二,循环创建按钮 //好评中评差评按钮 _normalArr = [NSArray arrayWithObjects:@"goodBtn_normal",@"mi
阅读全文
posted @ 2017-11-28 21:27 i兮兮
阅读(608)
评论(0)
推荐(0)
编辑
2017年11月14日
iOS 不在线好友头像(UIImage)置灰
摘要: #import "ViewController.h" typedef enum { ALPHA = 0, BLUE = 1, GREEN = 2, RED = 3 } PIXELS; @interface ViewController () @end @implementation ViewCont
阅读全文
posted @ 2017-11-14 14:28 i兮兮
阅读(343)
评论(0)
推荐(0)
编辑
2017年10月18日
UIAlertController 使用总结
摘要: 1:自带单个输入框的UIAlertController UIAlertController *alertController = [UIAlertController alertControllerWithTitle:nil message:@"请输入备注信息" preferredStyle:UIA
阅读全文
posted @ 2017-10-18 11:08 i兮兮
阅读(672)
评论(0)
推荐(0)
编辑
2017年10月17日
addChildViewController 学习记录
摘要: // // HMTMainViewController.m // UIScrollView // // Created by HMT on 14-6-25. // Copyright (c) 2014年 humingtao. All rights reserved. // #import "HMTM
阅读全文
posted @ 2017-10-17 11:15 i兮兮
阅读(356)
评论(0)
推荐(0)
编辑
2017年10月16日
xcode 打开工程就崩溃意外退出
摘要: 第一种方案: 然后用文本编辑器打开project.pbxproj文件,看是否有svn冲突,可以搜索<<<<< 等查看 如果不是svn文件,工程其他人能打开,就自己的打不开,可以使用第二种方案 1.第一步 找到工程文件 第二步,找到project.xcworkspace文件 第三步: 删除xcuser
阅读全文
posted @ 2017-10-16 16:31 i兮兮
阅读(1992)
评论(0)
推荐(0)
编辑
2017年9月27日
实现UITableViewCell的全选单选效果
摘要: RelatedCompanyCell.h里 @property (strong, nonatomic) IBOutlet UIImageView *companyPhoto; @property (strong, nonatomic) IBOutlet UILabel *companyName; @
阅读全文
posted @ 2017-09-27 10:40 i兮兮
阅读(538)
评论(0)
推荐(0)
编辑
storyboard或者Xib给View设置边框属性(颜色,宽度,圆角)
摘要: 纯代码设置Button或者其他View的边框属性 例: UIView* view = [[UIView alloc]init]; view.layer.borderWidth = 2.0; view.layer.masksToBounds = YES; view.layer.cornerRadius
阅读全文
posted @ 2017-09-27 08:27 i兮兮
阅读(2689)
评论(0)
推荐(0)
编辑
2017年9月21日
invalid nib registered for identifier(重用符)
摘要: 通过xib创建cell的时候 一定要注意!!! 这个错误是在这个xib中在View同一层级出现了其他的控件,检查一下xib中左边的层级关系,让cell的view是唯一的控件就可以了,否则一执行 就会提示 "* Terminating app due to uncaught exception 'NS
阅读全文
posted @ 2017-09-21 15:32 i兮兮
阅读(574)
评论(0)
推荐(0)
编辑
下一页