上一页 1 ··· 57 58 59 60 61 62 63 64 65 ··· 167 下一页
摘要: // // ViewController.m // 03-综合练习 // #import "ViewController.h" @interface ViewController () // 购物车 @property (weak, nonatomic) IBOutlet UIView *shopCarView; // 添加按钮 @property (weak, nonatomic) ... 阅读全文
posted @ 2017-08-29 18:14 无天666 阅读(294) 评论(0) 推荐(0)
摘要: // // main.m // 03-plist文件的回顾 // // Created by xiaomage on 15/12/29. // Copyright © 2015年 小码哥. All rights reserved. // #import int main(int argc, const char * argv[]) { @autoreleasepool { ... 阅读全文
posted @ 2017-08-29 18:08 无天666 阅读(224) 评论(0) 推荐(0)
摘要: Assets.xcassets图片是拖到右边里面去的。 阅读全文
posted @ 2017-08-29 17:28 无天666 阅读(260) 评论(0) 推荐(0)
摘要: // // ViewController.m // 02-UIButton(在代码中使用) // #import "ViewController.h" @interface ViewController () @end @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; ... 阅读全文
posted @ 2017-08-29 17:14 无天666 阅读(1909) 评论(0) 推荐(0)
摘要: // // ViewController.m // 10-iOS中播放音效 // // Created by xiaomage on 15/12/26. // Copyright © 2015年 小码哥. All rights reserved. // #import "ViewController.h" #import @interface ViewController () /... 阅读全文
posted @ 2017-08-29 15:47 无天666 阅读(340) 评论(0) 推荐(0)
摘要: /** 图片的两种加载方式: 1> imageNamed: a. 就算指向它的指针被销毁,该资源也不会被从内存中干掉, b. 放到Assets.xcassets的图片,默认就有缓存, c. 图片经常被使用,用这种方式加载, 2> imageWithContentsOfFile: a. 指向它的指针被 阅读全文
posted @ 2017-08-29 15:24 无天666 阅读(438) 评论(0) 推荐(0)
摘要: // // ViewController.m // 05-UIImageView的帧动画 // #import "ViewController.h" @interface ViewController () /** * 属性 */ @property (weak, nonatomic) IBOutlet UIImageView *imageView; @end @impleme... 阅读全文
posted @ 2017-08-29 15:02 无天666 阅读(423) 评论(0) 推荐(0)
摘要: // // ViewController.m // 06-资源存放问题 #import "ViewController.h" /** 加载图片的方式: 1. imageNamed: 2. imageWithContentsOfFile: 1. 加载Assets.xcassets这里面的图片: 1> 打包后变成Assets.car 2> 拿不到... 阅读全文
posted @ 2017-08-29 14:59 无天666 阅读(208) 评论(0) 推荐(0)
摘要: // // ViewController.m // 03-UIImageView的使用 // #import "ViewController.h" @interface ViewController () @property (weak, nonatomic) IBOutlet UIImageView *image2; @end @implementation ViewControl... 阅读全文
posted @ 2017-08-29 14:22 无天666 阅读(194) 评论(0) 推荐(0)
摘要: // // ViewController.m // 02-UILabel的使用 // // UILabel显示一段文字。 #import "ViewController.h" @interface ViewController () @end @implementation ViewController - (void)viewDidLoad { [super viewD... 阅读全文
posted @ 2017-08-29 11:43 无天666 阅读(204) 评论(0) 推荐(0)
上一页 1 ··· 57 58 59 60 61 62 63 64 65 ··· 167 下一页