摘要:
在Quartz中如何设置旋转点?12UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"bg.png"]]; imageView.layer.anchorPoint = CGPointMa... 阅读全文
摘要:
/* 不可变字典 NSDiction */ // 创建字典对象 // 参数1 : value // 参数2 : key 值// NSDictionary *dic1 = [NSDictionary dictionaryWithObject:@"张三" forKey:@"name"];... 阅读全文
摘要:
#import "Person.h"@implementation Person- (void)sayHi{ NSLog(@"name:%@,sex:%@,hobby:%@age:%ld",_name,_sex,_hobby,_age);}- (void)sleep{ NSLog(@"i lov... 阅读全文
摘要:
// 创建对象// Person *student = [[Person alloc]init];// // student->_hobby = @"玉兔";// [student sayHi];// [student sleep]; // Person *caoyu = [[Person... 阅读全文
摘要:
在Quartz中如何设置旋转点?12UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"bg.png"]]; imageView.layer.anchorPoint = CGPointMa... 阅读全文
摘要:
在Quartz中如何设置旋转点?12UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"bg.png"]]; imageView.layer.anchorPoint = CGPointMa... 阅读全文
摘要:
在Quartz中如何设置旋转点?12UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"bg.png"]]; imageView.layer.anchorPoint = CGPointMa... 阅读全文
摘要:
动画效果?12345678910111213141516171819202122-(void)doChange:(id)sender { if(view2 == nil) { [self loadSec]; } [UIView beginAnimations:nil context:NULL]; [... 阅读全文
摘要:
退回输入键盘:?123- (BOOL) textFieldShouldReturn:(id)textField{ [textField resignFirstResponder]; }CGRect?123456CGRect frame = CGRectMake (origin.x, origin.y... 阅读全文
摘要:
UIImage是iOS中层级比较高的一个用来加载和绘制图像的一个类,更底层的类还有 CGImage,以及iOS5.0以后新增加的CIImage。今天我们主要聊一聊UIImage的三个属性: imageOrientation, size, scale,几个初始化的方法: imageNamed,imag... 阅读全文