UINavigationController
StoryBoard的Segue类型有三种:Push,Modal,Custom.其中Push类型的Segue需要用到UINavigationController。第一步,先清空之前所有的连线和连接,选择ViewController,打开Editor菜单,选择Embed In选项中的Navigation Controller。
主窗口区域...
分类:
其他好文 时间:
2014-12-24 11:48:20
阅读次数:
236
iOS UIPageControl简单范例
关于自动 滚动代码 有待补充
实例中的图片自行添加
.h 文件代码
#import
@interface ViewController : UIViewController
{
UIScrollView *_scrollView;
NSMutableArray *slideImages;
UIPageControl ...
分类:
移动开发 时间:
2014-12-23 17:21:53
阅读次数:
169
popViewControllerAnimated后,进入的viewcontroller不能即时刷新。这时它不执行viewDidLoad,但执行viewWillAppear:(BOOL),所以只要把刷新逻辑写到viewWillAppear:(BOOL)里就OK了。 但要注意当有刷新label这样的v...
分类:
其他好文 时间:
2014-12-23 15:13:06
阅读次数:
130
本文以新浪微博的Oauth认证为例子进行Post请求的演示
下面直接上代码:
#import "ViewController.h"
#import "AFNetworking.h"
@interface ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad {
[super viewD...
分类:
Web程序 时间:
2014-12-21 16:41:36
阅读次数:
397
#import #import "ViewController.h"//window窗口#define WINDOW [[UIApplication sharedApplication]keyWindow]@interface MyNavigationViewController : UINavi....
分类:
其他好文 时间:
2014-12-21 12:40:31
阅读次数:
191
概要
一些简单的动画代理学习例子,包括显示、隐式、关键帧、关键帧路径四类动画。
结果展示
流程概要
见代码
主要代码
//
// ViewController.m
// Animation
//
// Created by arbboter on 14/12/20.
// Copyright (c) 2014年 arbboter. A...
分类:
其他好文 时间:
2014-12-20 17:00:28
阅读次数:
373
一 选择 ViewController 分别可以选 UINavigationController UITabBarController UISplitViewController 其中UINavigationController 就像一叠卡片,如图: 实现很简单,就是拖一个controller,注意...
分类:
其他好文 时间:
2014-12-20 07:03:54
阅读次数:
174
// ViewController.m// 16_网络编程// Created by lanou3g on 14-12-19.// Copyright (c) 2014年 mxt. All rights reserved.#import "ViewController.h"#define BASE_...
分类:
移动开发 时间:
2014-12-19 20:41:30
阅读次数:
218
模糊效果,使用FXBlurView这个第三方库可以很轻松的实现这一功能。
效果:
下面来看一下实现,ViewController.m
#import "ViewController.h"
#import "FXBlurView.h"
@interface ViewController ()
@end
@implementation ViewController
- (void...
分类:
移动开发 时间:
2014-12-19 19:07:43
阅读次数:
180
1.纯代码开发首先要做的事,删除storybroad两个文件以及Info->Custom iOS Target Properties中相关联的两栏2.创建两个不同的ViewController,现假定一个用作欢迎界面(或者说是产品介绍),一个用作第二次直接登录的主界面3.AppDelegate中将要...
分类:
移动开发 时间:
2014-12-19 18:39:23
阅读次数:
244