初学者的问题主要集中在,下面几个问题:一、几个函数总是不被调用:例如:[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
- (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
//// ViewViewController.swift// UIControlDemo//// Created by on 14/12/1.// Copyright (c) 2014年 马大哈. All rights reserved.//import UIKitclass ViewViewCo...
分类:
其他好文 时间:
2014-12-04 21:14:22
阅读次数:
180
UIControl-IOS开发UIKit提供了一组控件:UISwitch开关、UIButton按钮、UISegmentedControl分段控件、UISlider滑块、UITextField文本字段控件、UIPageControl分页控件。控件是对UIView派生类的实用增强及补充,并可以直接附着于...
分类:
移动开发 时间:
2014-12-04 19:55:14
阅读次数:
165