码迷,mamicode.com
首页 >  
搜索关键字:uiviewcontroller    ( 1229个结果
Snail—UI学习之表视图TableView(一)
我们是整一个表视图 然后再表视图的上方是一个广告栏 首先,在.h文件中写上下面的代码 主要就是遵守一些代理 #import @interface WJJRootViewController : UIViewController @end 然后再.m文件中写上如下 #import "WJJRootViewController.h" @interface WJJRoot...
分类:其他好文   时间:2015-07-30 21:28:51    阅读次数:169
iOS UIViewController API解读
/*UIViewController is a generic controller base class that manages a view. It has methods that are calledwhen a view appears or disappears.Subclasses ...
分类:移动开发   时间:2015-07-30 21:08:09    阅读次数:409
willMoveToParentViewController和didMoveToParentViewController
iOS 5.0 后UIViewController新增:willMoveToParentViewController和didMoveToParentViewController 在iOS 5.0以前,我们在一个UIViewController中这样组织相关的UIView 在以前,一个UIViewController的View可能有很多小的子view。这些子vie...
分类:其他好文   时间:2015-07-30 13:37:25    阅读次数:136
修改系统默认的backBarButtonItem的title和action
1、为什么在UIViewController内设置了self.navigationItem.backBarButtonItem 对于导航栏显示的backBarButtonItem不起任何作用?首先我们得了解一下backBarButtonItemleftBarButtonItemrightBarBut...
分类:其他好文   时间:2015-07-30 13:03:22    阅读次数:123
iOS 自带AVFoundation库实现二维码扫描
.h里#import @interface ErWeiViewController : UIViewController-(BOOL)startReading;-(void)stopReading;//捕捉会话@property (nonatomic, strong) AVCaptureSessio...
分类:移动开发   时间:2015-07-30 10:50:17    阅读次数:199
Snail—UI学习之系统标签栏UITabBarController
背景条件是 有一个根控制器 继承于UITabBarController 然后 建四个UIViewController 再然后创建一个UIViewController 我们让它作为上面四个其中之一的子界面 然后再RootViewController中写入下面代码 #import "WJJRootViewController.h" #import "WJJFirstViewControlle...
分类:其他好文   时间:2015-07-29 21:24:45    阅读次数:172
[iOS]在NavigationController中的ScrollView中的子视图都会下移64个像素
情况是这样的: 我有一个UINavigationController,设置为self.window的root视图, 然后有一个UIVIewController是UINavigtionController的根视图. 然后在UIViewController中加入一个ScrollView 在ScrollView中加入一个view. 此时发现. scrollView并没有自动下移64像素,而 Scr...
分类:移动开发   时间:2015-07-29 21:17:40    阅读次数:278
ViewController类中得方法和属性的用途
1、wantsFullScreenLayout只要在UIViewController上设置wantsFullScreenLayout=true ,那么状态栏的高度就不会被算在视图里,也就是说有没有状态栏y坐标始终都是从0算起。如果没有设置这个的话,旋转屏幕并且隐藏显示状态栏(statusBarHid...
分类:其他好文   时间:2015-07-29 18:48:27    阅读次数:125
一些Swift小知识点的整理
一些Swift小知识点的整理之前最开始了解Swift的时候的一些基本的东西,简单的整理一下。import UIKit var names = [] class ViewController: UIViewController,UIAlertViewDelegate { override func viewDidLoad() { super.viewDidLoad()...
分类:编程语言   时间:2015-07-29 12:12:56    阅读次数:139
iOS 手势应用
.h文件#import<UIKit/UIKit.h>@interfaceRootViewController:UIViewController{UIImageView*p_w_picpathView;}@end.m文件#import"RootViewController.h"@interfaceRootViewController()@end@implementationRootViewController-(void)viewDidLoad{[superviewDidLoad];//给..
分类:移动开发   时间:2015-07-29 06:42:04    阅读次数:193
1229条   上一页 1 ... 62 63 64 65 66 ... 123 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!