随笔分类 - iOS基本控价
所有控价的使用哦[争取做到]
摘要:// // 数据存储的总结.h // 08-数据存储-总结 // // Created by apple on 15-6-5. // Copyright (c) 2015年 itcast. All rights reserved. // /* 数据存储 1.什么能做plist存储 1.writeTo
阅读全文
摘要:// 实现滑动删除 // 什么时候调用 - (void)tableView:(UITableView*)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexP
阅读全文
摘要:- (IBAction)up { // 1.拿到按钮, UIButton *head = (UIButton *) [self.view viewWithTag:10]; // 2.通过tranform让头像向上走 // CGFloat tx:表示水平方向的移动范围 // CGFloat ty:垂直
阅读全文
摘要:uibutton *btn =(uibutton *)【self.view viewWithTag:10】; nsstringFromRect(frame)
阅读全文
摘要:// self.head.frame.origin.y = self.head.frame.origin.y - 10; // 不能直接访问对象的 结构体属性 的成员变量\ // 能够直接访问对象的结构体属性 // self.head.frame // 1.取出对象的结构体属性frame,赋值给临时
阅读全文
摘要://kvo0506 // [_collectionView addObserver:self forKeyPath:@"frame" options:NSKeyValueObservingOptionNew context:nil]; //kvo0506 -(void)observeValueFor
阅读全文
摘要:打印CGRect时用NSStringFromCGRect 打印CGRect时用NSStringFromCGRect 2012-11-24 11:01 7819人阅读 评论(0) 收藏 举报 2012-11-24 11:01 7819人阅读 评论(0) 收藏 举报 转载自:http://blog.si
阅读全文
摘要:在这个例子中,当改变picker值的时候,Cell中的值也跟着改变。以前就一直很纠结怎么获取选中的Cell,看过这个例子后,真是豁然开朗呀! 这个例子里用到了一个方法:indexPathForSelectedRow,用这个方法就能获取选择的cell了--!以前怎么没发现... 关键代码: - (IB
阅读全文
摘要://添加边框和提示 CGRect frameRect = CGRectMake(20, 90, self.window.frame.size.width-40, self.window.frame.size.height-180); UIView *frameView = [[UIView allo
阅读全文
摘要:UIView *bgRight=[[UIView alloc]initWithFrame:CGRectMake(SCREEN_WIDTH/2, 0, SCREEN_WIDTH/2, 35)]; bgRight.backgroundColor=[UIColor whiteColor]; [bgView
阅读全文
摘要:http://www.tuicool.com/articles/zQJ32yj
阅读全文
摘要:#import <UIKit/UIKit.h> @interface UITabBar (badge) - (void)showBadgeOnItemIndex:(int)index; //显示小红点 - (void)hideBadgeOnItemIndex:(int)index; //隐藏小红点
阅读全文
摘要:for (UIBarItem *item in self.tabBarController.tabBar.items) { [item setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys: [UIFont fontWit
阅读全文
摘要:1:通知 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWasShown:) name:UIKeyboardDidShowNotification object:nil]; [[NS
阅读全文
摘要:URL:http://www.jianshu.com/p/7f1cbccc0eb3
阅读全文
摘要:1: _descrViewab = [[UITextView alloc]initWithFrame:CGRectMake(15, CGRectGetMaxY(contentlab.frame)+20, SCREEN_WIDTH-30, 150)]; _descrViewab.del
阅读全文
摘要: //gzz0315 UIScrollView *Scrview = [[UIScrollView alloc]initWithFrame:CGRectMake(0,0,SCREEN_WIDTH, SCREEN_HEIGHT
阅读全文
摘要:1:_descrView = [[UITextView alloc]initWithFrame:CGRectMake(15, CGRectGetMaxY(describelab.frame)+10, SCREEN_WIDTH-30, 150)]; _descrView.delegate = self
阅读全文
摘要:donateExcontent.numberOfLines = 0; donateExcontent.lineBreakMode = NSLineBreakByWordWrapping; donateExcontent.text = @"尊敬的爱心捐助者:\n 我们只是需要您的相关捐助信息和您的个人
阅读全文