//// RootViewController.m// Lianxi_02//// Created by Super man on 15-2-11.// Copyright (c) 2015年 super man. All rights reserved.//#import "RootViewCon...
分类:
其他好文 时间:
2015-02-11 20:31:45
阅读次数:
164
1、RootView 跳到SecondView
首先我们需要新一个View。新建SecondView,按住Command键然后按N,弹出新建页面,我们新建SecondView
2、为Button 添加点击事件,实现跳转
在RootViewController.xib中和RootViewController.h文件建立连接
在RootVie...
分类:
移动开发 时间:
2015-02-09 10:58:45
阅读次数:
153
下面是ipad上的调试效果下面是代码,代码中都有注释:#import #import #import @interface RootViewController : UIViewController { AVAudioPlayer *player;}@property (nonatomic, ret...
分类:
其他好文 时间:
2015-02-02 22:56:38
阅读次数:
208
刚才调试的时候除了一些小问题,有一段代码要重用 NSString *key = @"CFBundleVersion"; // 取出沙盒中存储的上次使用软件的版本号 NSUserDefaults *defaults = [NSUserDefaults s...
分类:
移动开发 时间:
2015-02-02 14:07:17
阅读次数:
9532
1. 新建一个工程//// RootViewController.m// YouXianMing//// Copyright (c) 2014年 Y.X. All rights reserved.//#import "RootViewController.h"@interface RootVi...
分类:
移动开发 时间:
2015-01-21 13:16:45
阅读次数:
146
最近在公司负责做ipad开发,一个简单的需求,一个设置视图以modal的方式弹出,占据屏幕的中间一块区域,这时点击视图上的退出登录按钮,切换程序主window的rootviewcontroller为登录controller,这时问题来了,所有的输入框激活后弹出的键盘都不能自动收回,包括进入程序后其....
今天在设置修改密码成功进行跳转到登录页面重新登录的时候,我写的原代码是:
[self dismissViewControllerAnimated:YES completion:nil];
[UIApplication sharedApplication].keyWindow.rootViewController = [[loginViewController alloc...
分类:
移动开发 时间:
2015-01-09 10:47:16
阅读次数:
236
好久没弄cocos2d-x了。今天闲着蛋疼重新玩了下。
简单说下自己解决iphone5适配的问题,方法很笨,但是挺简单的。
1.在ios目录下的RootViewController.mm文件中加入如下代码
[cpp] view
plaincopy
// Override to allow orientations othe...
分类:
移动开发 时间:
2015-01-05 09:33:59
阅读次数:
160
UINavigationController是IOS开发中常用的用于视图切换的控制器. 在对象管理上, UINavigationController采用stack的方式来管理各个view的层级, rootViewController在stack的最底层. 同时, 也提供了诸多方法用于进行view之间的切换及管理等.常见的方法有pushViewController与popViewController等, 需要注意的是UINavigationController对应的segue的属性要设置为push方式....
分类:
其他好文 时间:
2014-12-24 01:20:53
阅读次数:
606
//// RootViewController.m// json demo//// Created by liman on 14-6-20.// Copyright (c) 2014年 liman. All rights reserved.//#import "RootViewController....
分类:
Web程序 时间:
2014-12-09 19:26:03
阅读次数:
149