// 为 tableView 添加footview,去掉多余的横线。- (void)setTableFooterView:(UITableView *)tb { if (!tb) { return; } UIView *view = [[UIView allo...
分类:
移动开发 时间:
2014-12-08 10:26:20
阅读次数:
275
初学者的问题主要集中在,下面几个问题:一、几个函数总是不被调用:例如:[objc]view plaincopy-(UIView*)tableView:(UITableView*)tableViewviewForHeaderInSection:(NSInteger)section;这个代理不被调用的种...
分类:
其他好文 时间:
2014-12-07 22:54:24
阅读次数:
290
floatbegainAngle=0.0f;CGAffineTransformafterAngle=CGAffineTransformMakeRotation(begainAngle*(M_PI/180.0f));[UIViewanimateWithDuration:0.01delay:0options:UIViewAnimationOptionCurveLinearanimations:^{iConImage.transform=afterAngle;}completion:^(BOOLfinished)..
分类:
其他好文 时间:
2014-12-07 06:41:59
阅读次数:
133
前言
Activity Transition:
提供了三种Transition类型:
进入:一个进入的过渡(动画)决定activity中的所有的视图怎么进入屏幕。
退出:一个退出的过渡(动画)决定一个activity中的所有视图怎么退出屏幕。
共享元素:一个共享元素过渡(动画)决定两个activities之间的过渡,怎么共享(它们)的视图。...
分类:
移动开发 时间:
2014-12-06 08:53:15
阅读次数:
217
- (void)exitApplication {
[UIView
beginAnimations:@"exitApplication"
context:nil];
[UIView
setAnimationDuration:0.5];
[UIView
setAnimationDelegate:self];
[UIVie...
分类:
其他好文 时间:
2014-12-05 19:24:56
阅读次数:
123
//将像素point由point所在视图转换到目标视图view中,返回在目标视图view中的像素值- (CGPoint)convertPoint:(CGPoint)point toView:(UIView *)view;//将像素point从view中转换到当前视图中,返回在当前视图中的像素值- (...
分类:
移动开发 时间:
2014-12-05 17:05:02
阅读次数:
138
1、clipsToBounds 默认为NO。代码:
UIView *tmpView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 200)];
tmpView.clipsToBounds = YES;//分别设置 YES /NO查看效果
[self.view addSubview:tmpView];
UIIm...
分类:
其他好文 时间:
2014-12-05 12:52:14
阅读次数:
149
#import @interface ZSDProgressView : UIView{ UIView *progressView;//进度view}//进度值@property(nonatomic,assign)float progress;@end#define UIColorFromRG...
分类:
移动开发 时间:
2014-12-05 12:35:32
阅读次数:
230
一、类扩展(class extension,匿名分类) 1.格式 @Interface 类名() { //成员变量... } //方法声明... @end 2.作用 1>写在.m文件中 2>一般用来扩充私有成员变量、@property属性、方法等二、随机数生成 1.arc4random() 会...
分类:
其他好文 时间:
2014-12-05 10:31:53
阅读次数:
150
1.动画(头部-开始动画)[UIView beginAnimations:nil context:nil];2.设置动画的执行时间[UIView setAnimationDuration:1.0];3.向上移动// CGPoint tempCenter = _btn.center;CGRect te...
分类:
其他好文 时间:
2014-12-05 10:24:44
阅读次数:
189