1.类目类目就是为已存在的类添加新的方法。但是不能添加实例变量。比如系统的类,我们看不到他的.m文件,所以没有办法用直接添加方法的方式去实现。@interface
NSMutableArray (Sort) //为NSMutableArray类添加Sort方法,Sort就是类目名,做到见名知意-(v...
分类:
移动开发 时间:
2014-05-08 18:28:54
阅读次数:
447
iOS手势处理iOS手势有着如下几种:UITapGestureRecognizerUIPinchGestureRecognizerUIRotationGestureRecognizerUISwipeGestureRecognizerUIPanGestureRecognizerUILongPressG...
分类:
移动开发 时间:
2014-05-08 18:24:35
阅读次数:
556
// GuideViewController.h// Created by l.h on
14-5-6.#import @interface GuideViewController : UIViewController@end ////
GuideViewController.m// Cr...
分类:
移动开发 时间:
2014-05-08 18:17:49
阅读次数:
640
iPhone 屏幕适配判断 和
iOS系统版本判断if([[[UIDevicecurrentDevice]systemVersion]floatValue]>=7.0) { //
iOS7.0及以上版本系统适配}if([UIScreen mainScreen].bounds.size.heig...
分类:
移动开发 时间:
2014-05-08 18:10:07
阅读次数:
393
http://blog.csdn.net/l_ch_g/article/details/8566557
分类:
移动开发 时间:
2014-05-08 18:08:09
阅读次数:
285
#import // 利用typedef创建blocktypedef int
(^MyBlock) (int,int); // 表示遵守协议@protocol MyProtocol /*
1.reqiured:要求实现方法,不实现方法编译器会发出警告 2.optional:不要求实现方法 3.默.....
分类:
其他好文 时间:
2014-05-08 17:40:55
阅读次数:
225
在Xcode上进行objective-c开发,使用ios模拟器,出现springboard
无法启动应用程序(错误 -3)解决方式:关闭iOS模拟器,然后重新运行程序。
分类:
编程语言 时间:
2014-05-08 17:39:53
阅读次数:
4119
苹果官方app
demohttps://developer.apple.com/library/ios/navigation/#section=Resource%20Types&topic=Sample%20Code
分类:
移动开发 时间:
2014-05-08 15:23:08
阅读次数:
328
UIButton *button = [UIButton
buttonWithType:UIButtonTypeCustom];//button的类型 button.frame = CGRectMake(100,
100,90, 90);//button的frame button.backgro.....
分类:
移动开发 时间:
2014-05-08 15:21:38
阅读次数:
404
i am bug
.bug{height:60px;line-height:60px;background-color:#999;} .bug
span{display:inline-block;width:100px;height:20px;background-color:#ff0000;v.....
分类:
其他好文 时间:
2014-05-08 14:47:23
阅读次数:
293