随笔分类 -  自己编写

摘要:1 凡是nsstring,就用copy,定义一个模型对象,就用strong,只是赋值的,例如int、double、char bool以及CGRect类似的就用assign。 2 Cornerstone详细操作 http://blog.csdn.net/kerry_deng/article/detai 阅读全文
posted @ 2017-02-10 09:36 代佳宏 阅读(111) 评论(0) 推荐(0) 编辑
摘要:This iPhone 6 is running iOS 10.2.1 (14D27), which may not be supported by this version of Xcode. 解决方法为:到应用程序(xcode)-右键-显示包内容 /Developer/Platforms/iPh 阅读全文
posted @ 2017-02-09 09:35 代佳宏 阅读(137) 评论(0) 推荐(0) 编辑
摘要:第一步初始化 UIPickerView *pickerview; //城市滚动表 NSDictionary *dict; //用于存储省份-城市的数据 NSArray *pro... 阅读全文
posted @ 2015-12-19 13:44 代佳宏 阅读(222) 评论(0) 推荐(0) 编辑
摘要:UIDatePicker *datapicker; //时间滚动表 datapicker = [[UIDatePicker alloc]initWithFrame:CGRectMake(50, 200, 250, 100)]; ... 阅读全文
posted @ 2015-12-19 11:12 代佳宏 阅读(307) 评论(0) 推荐(0) 编辑
摘要:第一步点击获取头像按钮 下面为按钮执行方法 判断设备是否具有照像机功能有的话执行前者方法没有执行后者方法 UIActionSheet *actionSheet; if([UIImagePickerController isSourceTy... 阅读全文
posted @ 2015-12-19 11:01 代佳宏 阅读(556) 评论(0) 推荐(0) 编辑
摘要:ios 9.0后再用以前的UIAlertAction 已经不行了 被弃用了 改用这种方法了UIAlertController *alertController = [UIAlertController alertControllerWithTitle:@"提示"message:@"什么怎么怎么样"... 阅读全文
posted @ 2015-12-02 11:54 代佳宏 阅读(185) 评论(0) 推荐(0) 编辑
摘要:#import "ViewController.h"#define kWidthOfScreen self.view.frame.size.width#define kHeightOfScreen self.view.frame.size.height@interface ViewControlle... 阅读全文
posted @ 2015-12-01 16:09 代佳宏 阅读(309) 评论(1) 推荐(0) 编辑
摘要:第一个当报cannot find interface declaration for 'UIImage或者use of undeclared identifier 'UIImage'时我们要在报错页面导入这个框架 '#import 第二个错误 在AFSecurityPolicy.m这个类中,会报... 阅读全文
posted @ 2015-11-17 11:36 代佳宏 阅读(568) 评论(1) 推荐(0) 编辑
摘要:- (void)viewDidLoad { [super viewDidLoad]; [self buttonswitch]; [self buttonslider]; } -(void)buttonswitch { // UIswitch self.view.backgroundColor = [ 阅读全文
posted @ 2015-05-07 15:22 代佳宏 阅读(114) 评论(0) 推荐(0) 编辑
摘要://按钮UIButton *button = [UIButton buttonWithType:UIButtonTypeRoundedRect ];//按钮形状 button.frame = CGRectMake(50, 200, 50, 50);//大小 [button addTarg... 阅读全文
posted @ 2015-05-07 14:48 代佳宏 阅读(144) 评论(0) 推荐(0) 编辑
摘要:#import "ViewController.h"@import MediaPlayer;@interface ViewController (){ MPMoviePlayerController *_mov;}@property (weak, nonatomic) IBOutlet UIImag... 阅读全文
posted @ 2015-01-15 12:01 代佳宏 阅读(156) 评论(0) 推荐(0) 编辑
摘要:#import "ViewController.h"@interface ViewController (){ CALayer *_l1;//定义能够全局使用 CALayer *_l2;}@end@implementation ViewController- (void)viewDidLoad { ... 阅读全文
posted @ 2015-01-12 17:19 代佳宏 阅读(199) 评论(0) 推荐(0) 编辑
摘要:#import //这是oc的框架@interface jisuan : NSObject //申明一个jisuan这样的类 并继承NSObject这个类{ @public //下面都是定义类里面的值 float a; //一个数字 float b; //一个数字 float sum; //两个数... 阅读全文
posted @ 2014-12-03 19:48 代佳宏 阅读(554) 评论(0) 推荐(0) 编辑

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