A.需求1.搭建一个“私人通讯录”Demo2.模拟登陆界面账号密码记住密码开关自动登陆开关登陆按钮3.退出注销4.增删改查5.恢复数据(取消修改)B.基本架构1. 5个控制器(1)导航控制器 NavigationController(2)登陆 UIViewController输入账号密码记住密码、自...
分类:
移动开发 时间:
2014-12-27 01:28:59
阅读次数:
594
我们要实现的效果如下。 1.修改ControlView.h,即添加变量dict,用于存储TabelView的数据源。Cpp代码 #import@interfaceIkrboyViewController5:UIViewController{NSMutableDictionary*dict;}@en....
分类:
移动开发 时间:
2014-12-26 18:27:59
阅读次数:
247
iOS基础界面就是通过UIViewController展示的。首先区分content controller和container controller的区别。content controlller就是展示我们当前页面的controller,而container controller就是一个管理cont...
分类:
其他好文 时间:
2014-12-25 23:36:24
阅读次数:
204
之前介绍动画时提过UIView的转场动画,但是开发中我们碰到更多的viewController的切换,ios中常见的viewcontroller切换有四种:模态视图,导航栏控制器,UITabBarController以及addchildviewcontroller,自定义viewcontroller...
分类:
其他好文 时间:
2014-12-24 21:16:13
阅读次数:
431
添加SystemConfiguration.framework 到工程中
对应的.h文件
#import
@interface ViewController : UIViewController
//如果方法前面加+,就相当于类的静态方法,这里要注意一下
- (BOOL) connectedToNetwork;
@end
对应的.m文件
#import "ViewController.h...
分类:
移动开发 时间:
2014-12-24 16:17:02
阅读次数:
170
本文转载至http://blog.csdn.net/yongyinmg/article/details/40619727iOS 5.0 后UIViewController新增:willMoveToParentViewController和didMoveToParentViewController在i...
分类:
其他好文 时间:
2014-12-24 16:14:42
阅读次数:
172
ios7下的app都是全屏的,意思就是所有控制器的view默认都是从屏幕的(0,0)开始。为了达到全屏效果的app,官方为UIviewController增加了几个属性:1 @property(nonatomic,assign) UIRectEdge edgesForExtendedLayout N...
分类:
移动开发 时间:
2014-12-23 23:58:38
阅读次数:
499
在开发的时候,有时候会遇到
1.ios attempt to present whose view is not in the window hierarchy
2.Warning: Attempt to present on whose view is not in the window hierarchy!
等等这样类似的提示,只要里面提示有 window hierarchy...
iOS UIPageControl简单范例
关于自动 滚动代码 有待补充
实例中的图片自行添加
.h 文件代码
#import
@interface ViewController : UIViewController
{
UIScrollView *_scrollView;
NSMutableArray *slideImages;
UIPageControl ...
分类:
移动开发 时间:
2014-12-23 17:21:53
阅读次数:
169
-------------UIView------------- 1、创建 UIView *view = [[UIView alloc]init]; 2、设置位置 view.frame = CGRectMake(10, 40, 100, 200); 3、显示 [self.window a...
分类:
其他好文 时间:
2014-12-22 22:28:25
阅读次数:
241