上一页 1 ··· 3 4 5 6 7 8 9 下一页
摘要: //通过xib文件创建一个视图控制器。并作为窗口的根控制器self.viewController = [[ViewController alloc] initWithNibName:@"ViewController"bundle:nil];//通过代码创建一个视图控制器,self.viewContr... 阅读全文
posted @ 2015-01-08 19:19 代佳宏 阅读(150) 评论(0) 推荐(0)
摘要: UIImageView的作用是显示图片和多张动态的图片- (id)initWithImage:(UIImage *)image;//初始化图片视图- (id)initWithImage:(UIImage *)image highlightedImage:(UIImage *)highlightedI... 阅读全文
posted @ 2015-01-08 10:24 代佳宏 阅读(153) 评论(0) 推荐(0)
摘要: UILabel 的作用是显示文本UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(100, 100, 100, 40)]; label.text = @"代佳宏";//创建文本的内容 nillabel.textColor = [UI... 阅读全文
posted @ 2015-01-08 10:08 代佳宏 阅读(146) 评论(0) 推荐(0)
摘要: // AppDelegate.m#import "AppDelegate.h"#import "ViewController.h"@interface AppDelegate ()@end@implementation AppDelegate- (BOOL)application:(UIApplic... 阅读全文
posted @ 2015-01-05 19:17 代佳宏 阅读(221) 评论(0) 推荐(0)
摘要: #import "ViewController.h"@interface ViewController ()@property (weak, nonatomic) IBOutlet UIImageView *imageView;@end@implementation ViewController- ... 阅读全文
posted @ 2014-12-24 20:07 代佳宏 阅读(152) 评论(0) 推荐(0)
摘要: www.diveinedu.cn/nav/index.html 阅读全文
posted @ 2014-12-11 14:04 代佳宏 阅读(98) 评论(0) 推荐(0)
摘要: #import "ViewController.h"@interface ViewController (){ UIView *_gee; //定义的实例变量 UIView *_red;}@end@implementation ViewController- (void)viewDidLoad { ... 阅读全文
posted @ 2014-12-09 19:40 代佳宏 阅读(233) 评论(0) 推荐(0)
摘要: //#import #import "Animal.h"int main(int argc, const char * argv[]) { @autoreleasepool { //1. 创建方法 //2. 排序 //3. 取元素 //4. 连接,分隔 //5. 强引用 //6. for...in ... 阅读全文
posted @ 2014-12-09 19:20 代佳宏 阅读(198) 评论(0) 推荐(0)
摘要: __weak的类型的指针是不会影响对象的释放当系统释放后 会自动的指向nil;__Strong 至少有一个__Strong类型的指针是 对象不会释放 阅读全文
posted @ 2014-12-08 21:59 代佳宏 阅读(217) 评论(0) 推荐(0)
摘要: 1 定义中 类的字母要大写2 变量和方法首字母要小写3 以后每个单词首字母大写4 实用变量名最好用_开头5 在要进行运算时最好用空格隔开 方便查看 egg:a = a+b; 阅读全文
posted @ 2014-12-08 21:18 代佳宏 阅读(127) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 下一页