- 博客(10)
- 资源 (5)
- 收藏
- 关注
转载 BLOCK
使用block已经有一段时间了,感觉自己了解的还行,但是几天前看到CocoaChina上一个关于block的小测试主题 : 【小测试】你真的知道blocks在Objective-C中是怎么工作的吗?,发现竟然做错了几道, 才知道自己想当然的理解是错误的,所以抽时间学习了下,并且通过一些测试代码进行测试,产生这篇博客。Block简介(copy一段)Block作为C语言的扩展,并不是高新技
2014-07-26 22:12:26 289
原创 Tableview中cell的自适应高度
@implementation StudentCell- (void)dealloc{ [_nameLabel release]; [_sexLabel release]; [_phoneLabel release]; [_photoView release]; [_hobbyLabel release]; [super dealloc];}
2014-07-23 19:16:48 551
原创 正确的添加路径的方法
- (id)initWithFrame:(CGRect)frame{ self = [super initWithFrame:frame]; if (self) { CGFloat x = 0,y = 0; //通过循环往 scrollview 上添加缩略图,为了能让UIImagView能响应点击事件,首先打开UIImageVie
2014-07-22 10:36:32 574
原创 视图控制器
导航控制器仅仅负责切换,中要的属性:viewControllers,navigationBar等//UINavigationController包含一个UINavigationBar//UINavigationBar管理多个UINavigationItem//UINavigationItem包含多个UIBarButtonItem
2014-07-18 16:07:59 386
原创 UI控件使用案例<四>
//*********动画翻转并改变View颜色- (void)changeColor:(UIView *)view{ if (view.backgroundColor==[UIColor yellowColor]) { [UIView beginAnimations:nil context:nil]; [UIView setAnimationD
2014-07-17 22:29:36 345
原创 UI控件使用案例<三>
1. //*********UIScrollview的学习使用********** _scrollView =[[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, 320, 100)]; _scrollView.contentSize=CGSizeMake(1280, 100);//UIScrollView的contentS
2014-07-17 16:39:18 399
原创 UI控件使用案例<二>
1. //轻扫 UISwipeGestureRecognizer*swip = [[UISwipeGestureRecognizer alloc]initWithTarget:self action:@selector(swipChangeColor:)]; [self.view addGestureRecognizer:swip]; swip.direction=
2014-07-17 16:30:56 329
原创 UI控件使用案例<一>
1. //********UISegmentedControl********** UIImage *image = [UIImageimageNamed:@"2.png"]; NSArray *arr = @[@"分组",@"全部",@"推荐",image];//不能在一个seg里面既有文字又有图片 UISegmentedControl *control = [[UISegmentedContr
2014-07-16 22:25:57 530
原创 C的学习前三节笔记
alt shift ctrl command shift 3 截屏去除桌面 command shift 4 截屏 +空格 只截屏窗口强制退出: esc 所有设置通过偏好设置进行所有的程序偏好设置都用“command,”进行 通用里面进行桌面内容项目设置dock 桌面图标大小可调节右键查看显示选项可以添加多个桌面 dock中有Launchpad /m
2014-06-10 17:38:31 376
power tool(64位)
2012-08-28
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人