1.通过限时写代码,优化代码的方式。 1.containerView -》frame:self.window.bounds containerView.frame = self.window.bounds 初始化窗口跟window一样大 2.命名:View:containerView labe...
分类:
其他好文 时间:
2015-04-20 22:07:33
阅读次数:
170
一、基础动画 CABasicAnimation
1 //初始化方式
CABasicAnimation * cabase=[CABasicAnimation animation];
2 //通过keyPath设置需要实现动画的属性,此处设为bounds
cabase.keyPath=@"bounds";
3 //通过toValue设置动画结束时候的状态
cabase.t...
分类:
移动开发 时间:
2015-04-20 16:58:14
阅读次数:
152
privatevoidFullScreen()//全屏{SizeMode=2;FormBorderStyle=FormBorderStyle.None;Left=Top=0;Width=Screen.PrimaryScreen.Bounds.Width;Height=Screen.PrimarySc...
分类:
其他好文 时间:
2015-04-19 21:09:51
阅读次数:
150
这似乎是iOS的一个BUG(ref: stackoverflow的大神们讲的)解决方案在继承自UITableViewCell的子类中的init方法中加入如下设置:self.contentView.frame = self.bounds; self.contentView.autores...
分类:
移动开发 时间:
2015-04-17 13:35:26
阅读次数:
1643
在Xcode6 中创建的app,在ios7.1的iphone5设备和iphone模拟器中不能显示全屏,用 [UIScreen mainScreen].bounds.size.height得到的值竟然是480!从stackoverflow中找到的答案:原文地址http://stackoverflow....
分类:
移动开发 时间:
2015-04-16 00:57:32
阅读次数:
134
经测试,发现:[UIScreen mainScreen].bounds;返回的CGRect,包含状态栏20的高度。[UIScreen mainScreen].applicationFrame;返回的CGRect,不包含状态栏20的高度。在此记录下,方便以后查阅。不要笑我菜鸟!
分类:
移动开发 时间:
2015-04-14 19:35:41
阅读次数:
161
Scala 上界 和 下界_Upper Type Bounds_Lower Type Bounds Type Bounds When defining a parameterized type or method, it may be necessary to specify?bounds on the type. For example, a parameterized ty...
分类:
其他好文 时间:
2015-04-14 14:52:31
阅读次数:
168
//截图功能的实现//1.建立一个bitmapContextUIGraphicsBeginImageContext(self.view.bounds.size);//2.获取bitmapContextCGContextRef context = UIGraphicsGetCurrentContext...
分类:
其他好文 时间:
2015-04-13 22:39:14
阅读次数:
107
获取屏幕高 let?screenHeight = UIScreen.mainScreen().bounds.size.height 获取屏幕宽 let?screenWidth = UIScreen.mainScreen().bounds.size.width...
分类:
其他好文 时间:
2015-04-13 16:56:31
阅读次数:
103
继中级篇后呢,我们在这里做一下ScrollView的简单使用哦废话不多说啦,先用代码来为scrollView里面加一些视图吧
-(void)buildSubViewsInScrollView:(UIScrollView*)scrollView{
for(inti=0;i<scrollView.contentSize.width/CGRectGetWidth(scrollView.bounds);i++){
for(int..
分类:
其他好文 时间:
2015-04-12 19:31:27
阅读次数:
132