1 // 创建帧动画对象(缩放bounds,平移position,旋转transform) 2 CAKeyframeAnimation *anim = [CAKeyframeAnimation animationWithKeyPath:@"position"]; 3 // ...
分类:
其他好文 时间:
2015-07-07 21:03:44
阅读次数:
122
1 #import "RootViewController.h" 2 3 #define width [UIScreen mainScreen].bounds.size.width 4 #define heigthY 150 5 6 @interface RootViewController ...
分类:
其他好文 时间:
2015-07-07 16:09:53
阅读次数:
122
大家是否还记得对控件的frame/bounds/center进行属性更改时的三部曲?
1>将结构体取出
2>改变取出后的结构体对应的数据
3>将修改后的结构体赋值给控件
CGRect frame = self.view.frame;
// your code...
frame.origin.x = frameX;
// your code...
se...
分类:
移动开发 时间:
2015-07-06 10:23:25
阅读次数:
145
#define SCREEN_SIZE [UIScreen mainScreen].bounds.size
#define KImageCount 3
#define KImage_Height 250
@interface ViewController ()
@property (nonatomic, strong) UIScrollView * scrollView;
@pro...
分类:
移动开发 时间:
2015-07-02 17:33:11
阅读次数:
107
cell 设置高亮颜色_backView 是frame为 Cell的bounds 的Cell上的子视图- (void)setHighlighted:(BOOL)highlighted animated:(BOOL)animated { [super setHighlighted:highlight....
分类:
其他好文 时间:
2015-07-01 11:50:21
阅读次数:
113
0. indicating 决定1.in order to 以便2.rectangle bounds 矩形尺寸3.applied 应用4.entirety 全部5.technique 方法6.truncating 截短7.wrapping 换行8.string 字符串9.familiar style...
分类:
移动开发 时间:
2015-06-28 21:24:47
阅读次数:
162
contentOffset, 在UIScrollview里面滚动条用的最多,比如网易新闻的滚动条,肯定会用到这个。我认为:它是下一个要显示的图片的左上角。设置了这个左上角后,下一次滚动时,邮戳直接到了这个点,然后配合width和height,然后就把下一张图片显示出来了。这个还有一个好处就是:这样设...
分类:
其他好文 时间:
2015-06-27 19:37:32
阅读次数:
92
首先确保一份已经配好功能的html文件。
1.初始化一个webview(viewdidload)
UIWebView* webView = [[UIWebView alloc]
initWithFrame:self.view.bounds];
[self.view addSubview:webView];
2.将此webview与WebViewJavascriptBridge关...
分类:
编程语言 时间:
2015-06-26 12:59:53
阅读次数:
169
UIImageView *imgView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"01首页.png"]]; imgView.frame = self.view.bounds; imgView.autoresizi...
分类:
移动开发 时间:
2015-06-25 15:24:36
阅读次数:
159
使用网上源码KYAnimatedPageControl self.pageControl=[[KYAnimatedPageControlalloc]initWithFrame:CGRectMake(CGRectGetWidth(self.view.bounds)/2-50,CGRectGetHei....
分类:
其他好文 时间:
2015-06-25 13:57:37
阅读次数:
184