- 博客(14)
- 收藏
- 关注
转载 基础知识1
在Quartz中如何设置旋转点 ? 1 2 UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"bg.png"]]; imageView.layer.anchorPoint = CGPointMake(0.5, 1.0); ...
2015-03-01 16:28:00
114
转载 字典
/* 不可变字典 NSDiction */ // 创建字典对象 // 参数1 : value // 参数2 : key 值 // NSDictionary *dic1 = [NSDictionary dictionaryWithObject:@"张三" forKey:@"name"]; // NSLog...
2015-03-01 16:25:00
124
转载 类
#import "Person.h" @implementation Person - (void)sayHi { NSLog(@"name:%@,sex:%@,hobby:%@age:%ld",_name,_sex,_hobby,_age); } - (void)sleep { NSLog(@"i love sleep"); } //- ...
2015-03-01 16:24:00
145
转载 OC方法
// 创建对象 // Person *student = [[Person alloc]init]; // // student->_hobby = @"玉兔"; // [student sayHi]; // [student sleep]; // Person *caoyu = [[Person alloc]init]; //...
2015-03-01 16:23:00
182
转载 基础知识4
在Quartz中如何设置旋转点 ? 1 2 UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"bg.png"]]; imageView.layer.anchorPoint = CGPointMake(0.5, 1.0); ...
2015-03-01 11:50:00
114
转载 基础知识4
在Quartz中如何设置旋转点 ? 1 2 UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"bg.png"]]; imageView.layer.anchorPoint = CGPointMake(0.5, 1.0); ...
2015-03-01 11:50:00
118
转载 基础知识3
在Quartz中如何设置旋转点 ? 1 2 UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"bg.png"]]; imageView.layer.anchorPoint = CGPointMake(0.5, 1.0); ...
2015-03-01 11:49:00
110
转载 基础知识2
动画效果 ? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 -(void)doChange:(id)sender { if(view2 == nil) { [self loadSec]; } [UIView beg...
2015-03-01 11:42:00
103
转载 基础知识
退回输入键盘: ? 1 2 3 - (BOOL) textFieldShouldReturn:(id)textField{ [textField resignFirstResponder]; } CGRect ? 1 2 3 4 5 6 CGR...
2015-03-01 11:41:00
137
转载 UIImage
UIImage是iOS中层级比较高的一个用来加载和绘制图像的一个类,更底层的类还有 CGImage,以及iOS5.0以后新增加的CIImage。今天我们主要聊一聊UIImage的三个属性: imageOrientation, size, scale,几个初始化的方法: imageNamed,imageWithContentsOfFile,以及绘制Image的几个draw开头的方法。 一...
2015-03-01 08:51:00
112
转载 viewController
Xcode6, 引入viewController代码: 1.在Appdelegate先引入ViewController头文件 2.ViewControllervc=(ViewControlleralloc)init; Self.window.rootViewController=vc; 然后vc就代表ViewController对象,就可以调用其属性和方法了...
2015-02-26 19:19:00
109
转载 字典
/* 不可变字典 NSDiction */ // 创建字典对象 // 参数1 : value // 参数2 : key 值 // NSDictionary *dic1 = [NSDictionary dictionaryWithObject:@"张三" forKey:@"name"]; // NSLog...
2015-02-06 16:02:00
138
转载 NSString NSArray
int main(int argc, const char * argv[]) { // // // SDK // Software Development Kit // 软件开发 // API // Application Programming Interface // 应用程序接口 /* ...
2015-02-06 16:00:00
179
转载 面向对象的通讯录代码
@implementation AddressBook // 系统预设好的init方法 - (instancetype)init { self = [super init]; if (self) { // 容器类在使用之前 必须先进行初始化 self.contactDic = [NSMutableDictionary dict...
2015-02-06 15:55:00
456
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅