Transform 主要用来改变一个视图对象的位置、尺寸或者旋转角度 frame:也可以位置/尺寸bounds:尺寸center:位置最常用的三种方法someView.transform=CGAffineTransformMakeRotation(角度) 旋转 -此角度是弧度制 m_pi m_pi_...
分类:
移动开发 时间:
2014-11-25 16:13:49
阅读次数:
374
Transform 主要用来改变一个视图对象的位置、尺寸或者旋转角度
frame:也可以位置/尺寸
bounds:尺寸
center:位置
最常用的三种方法
someView.transform=CGAffineTransformMakeRotation(角度) 旋转
-此角度是弧度制 m_pi m_pi_2 m_pi_4 … 正数是顺时针 负数是逆...
分类:
移动开发 时间:
2014-11-25 08:14:10
阅读次数:
178
看到UIWindow,相信很多人都会想起下方的代码。这是旧版本Xcode提供的模板,用于创建整个项目的视图容器。-(BOOL)application:(UIApplication*)applicationdidFinishLaunchingWithOptions:(NSDictionary*)launchOptions{CGRectbounds=[UIScreenmainScreen].bounds;self.window=..
- (void)viewDidLoad{ [super viewDidLoad]; UIScrollView *scrollview=[[UIScrollView alloc] initWithFrame:[UIScreen mainScreen].bounds]; scrollview.c...
分类:
其他好文 时间:
2014-11-23 00:34:53
阅读次数:
164
大概有这几种:Runtime Error(ARRAY_BOUNDS_EXCEEDED) // array bounds exceed 数组越界Runtime Error(DIVIDE_BY_ZERO) //divisor is nil 除零Runtime Error(ACCESS...
分类:
其他好文 时间:
2014-11-22 00:44:18
阅读次数:
279
AppDelegate: self.window = UIWindow(frame: UIScreen.mainScreen().bounds) self.window!.backgroundColor = UIColor.whiteColor() self...
分类:
移动开发 时间:
2014-11-19 15:24:47
阅读次数:
207
Depth Bounds Test (DBT)Depth Bounds Test(深度范围检测),是NvdiaGeForce 6系列以后显卡的特性(GPU Programming Guide GeForce 8 and 9 Series),并不是DirectX的特性。所以在例如Nsight和Pix的...
分类:
数据库 时间:
2014-11-13 22:16:03
阅读次数:
356
-(BOOL)application:(UIApplication*)applicationdidFinishLaunchingWithOptions:(NSDictionary*)launchOptions{self.window=[[UIWindowalloc]initWithFrame:[[UIScreenmainScreen]bounds]];//Overridepointforcustomizationafterapplicationlaunch.//注册推送通知//[[UIApplic..
分类:
移动开发 时间:
2014-11-13 19:04:42
阅读次数:
440
#pragma mark 截图
- (UIImage *)capture:(UIView *)view
{
UIGraphicsBeginImageContextWithOptions(view.bounds.size, YES, 0.0);
[view.layer renderInContext:UIGraphicsGetCurrentContext()];
U...
分类:
移动开发 时间:
2014-11-12 19:47:11
阅读次数:
200
HelloWorld! public class LinkInfo { public int line; public Rect bounds; public string token; public string p0; ...
分类:
其他好文 时间:
2014-11-12 19:33:18
阅读次数:
139