随笔分类 -  iOS基本控价

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

点击右上角即可分享
微信分享提示