![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
iOS备忘
上帝很忙_JZ
这个作者很懒,什么都没留下…
展开
-
iOS tableView滑动隐藏/显示tabbar
在需要滑动隐藏/显示的页面中:@property(nonatomic,assign)CGFloat historyY;#pragma mark Delegate//设置滑动的判定范围- (void)scrollViewWillEndDragging:(UIScrollView *)scrollView withVelocity:(原创 2015-10-23 15:30:48 · 3123 阅读 · 0 评论 -
iOS 高清截取控件原图
#pragma mark 参数view即我们要截取的控件以及控件上的所有视图- (UIImage *)imageFromView:(UIView *)view withFrame:(CGRect)theFrame{ UIImage* image = nil;//最终返回的image //设置截取尺寸 CGSize size = CGSizeMake(view.frame.s原创 2015-10-29 16:28:47 · 1481 阅读 · 0 评论 -
JSONKit报错
错误显示:direct access to Objective-C's isa is deprecated in favor of object_getClass()BuildSetting中搜索 Direct usage of 'isa' 将 YES改为NO原创 2016-01-29 14:16:04 · 558 阅读 · 0 评论 -
UITextfield常用属性
@property(nonatomic,strong) UIImageView*bgImageView;//登录背景@property(nonatomic,strong) UITextField*phoneNumField;//手机号输入框@property(nonatomic,strong) UITextField*passwordField;//密码输入框原创 2016-02-18 09:06:42 · 493 阅读 · 0 评论 -
iOS 带下划线的文字按钮
效果如图 //富文本NSMutableAttributedString *content = [[NSMutableAttributedString alloc]initWithString:[NSString stringWithFormat:@"发送验证码"]]; NSRange contentRange = {0,[content length]}; [content ad原创 2016-02-18 09:45:48 · 1516 阅读 · 0 评论 -
系统UITabbarController
新建MainTabbarController类在MainTabbarController.m中- (void)viewDidLoad { [super viewDidLoad]; self.view.backgroundColor = [UIColor whiteColor]; //创建viewContronllers [self createViewControll原创 2016-02-18 11:43:54 · 472 阅读 · 0 评论 -
ViewControlloer常用背景图设置
@property(nonatomic,strong)UIImageView*bgImageView;//背景图 _bgImageView = [[UIImageView alloc]initWithFrame:self.view.frame]; _bgImageView.userInteractionEnabled = YES; _bgImageView.backgroun原创 2016-02-18 17:20:27 · 677 阅读 · 0 评论 -
UITableView备忘
<UITableViewDataSource,UITableViewDelegate>@property(nonatomic,strong)UITableView*tableView;-(void)makeUI{ _tableView = [[UITableView alloc]initWithFrame:self.view.frame style:UITableViewStyleGro原创 2016-02-18 11:57:38 · 465 阅读 · 0 评论 -
CocoaPods使用
http://www.jianshu.com/p/6e5c0f78200a转载 2016-02-26 13:31:07 · 443 阅读 · 0 评论