刚开始运行的时候的效果图:点击ican图标后的效果图:RootViewController.h#import @interface RootViewController : UIViewController{ UIImageView *iCanImageView; UIImageView...
分类:
其他好文 时间:
2014-10-17 11:31:35
阅读次数:
196
没有点击索引的时候的效果图:点击索引后的效果图:代码:RootViewController.h#import @interface RootViewController : UIViewController{ UITableView * city; NSDictionary * dic;...
分类:
其他好文 时间:
2014-10-16 21:02:43
阅读次数:
184
当一个视图控制器被创建,并在屏幕上显示的时候。 代码的执行顺序 1、 alloc 创建对象,分配空间 2、init (initWithNibName) 初始化对象,初始化数据 3、loadView 从nib载入视图 ,通常这一步不需要去干涉。除非你没有使用xib文件创建视图 4、viewDidLoa...
分类:
其他好文 时间:
2014-10-16 19:32:42
阅读次数:
243
.h#import @interface RootViewController : UIViewController{ NSTimer *timer; UIImageView *imageView1; UIImageView *imageView2; UIImageView ...
分类:
其他好文 时间:
2014-10-16 15:33:02
阅读次数:
131
效果图:代码:.h#import @interface RootViewController : UIViewController{ //列表 UITableView * _tableViewList; //显示内容 UITableView * _tableViewMembe...
分类:
其他好文 时间:
2014-10-15 16:39:21
阅读次数:
204
效果图:其中图片是可以自己动的。当然,点击白色的小圆点,也是可以滑动的。上代码。.h#import @interface RootViewController : UIViewController{ UIScrollView *scoreView;}@end.m- (void)viewDidL...
分类:
其他好文 时间:
2014-10-14 19:36:59
阅读次数:
144
两个tableView是可以左右滑动的。两个tableView放在一个scrollerView上,可以,左右滑动。上代码。.h#import @interface RootViewController : UIViewController{ UIScrollView *_scrolView; ...
分类:
其他好文 时间:
2014-10-14 19:22:02
阅读次数:
195
效果图:代码:.h#import #import "EGORefreshTableHeaderView.h"@interface RootViewController : UIViewController{ UITableView *_tableView; EGORefreshTable...
分类:
其他好文 时间:
2014-10-14 18:21:49
阅读次数:
136
ios设备中有的加速计可以测量出加速度和重力。陀螺仪可用于确定设备的方向与每条坐标轴之间的夹角,可用于读取描述设备围绕其轴的旋转的值。
首先在工程中添加CoreMotion.framework#import #import
@interface ViewController : UIViewController
@property (strong, nonatomic) CMMotionM...
分类:
移动开发 时间:
2014-10-13 12:19:39
阅读次数:
217
1,创建并使用一个UINavigationControllerUIViewController *vc = [[UIViewController alloc]init];UINavigationController *nav = [[UINavigationController alloc] ini...
分类:
移动开发 时间:
2014-10-12 00:52:47
阅读次数:
326