1、首先引入AVFoundation.framework框架2、.h文件添加#import@interfaceLightViewController :UIViewController{ BOOLisLightOn; AVCaptureDevice*device;}@propertyBOOLisLi...
分类:
移动开发 时间:
2015-05-13 12:36:16
阅读次数:
133
UITableViewController(表视图控制器)继承自UIViewController,自带一个tableViewself.view不是UIView而是UITableViewdatasource和delegate你默认都是self(UITableViewController)开发过程中只需...
分类:
其他好文 时间:
2015-05-11 19:55:24
阅读次数:
128
IOS7中,不仅应用的风格有一定的变化,状态栏变化比较大,我们可以看到UIVIEWCONTROLLER的状态栏与导航栏基本是一体的。因此UIVIEWCONTROLLER的HIDE/SHOW状态的方法也跟其他版本的不一样了。 在IOS7以前的版本,HIDE/SHOW是通过以下代码实现[cpp]view...
分类:
移动开发 时间:
2015-05-11 17:35:14
阅读次数:
138
iOS Programming View Controllers 视图控制器 1.1 A view controller is an instance of a subclass of UIViewController. 一个view controller 是一个UIViewController的子...
分类:
移动开发 时间:
2015-05-08 12:23:49
阅读次数:
221
UIViewController.m 1 #import "ViewController.h" 2 #import "CustomerSlider.h" 3 @interface ViewController () 4 5 @end 6 7 @implementation ViewControl.....
分类:
其他好文 时间:
2015-05-07 23:45:17
阅读次数:
245
Xcode UI UIViewController 生明周期
分类:
其他好文 时间:
2015-05-07 23:30:17
阅读次数:
232
//连续pop2次 NSArray * viewControllers = self.navigationController.viewControllers; for (UIViewController * aViewController in viewControllers) { ...
分类:
其他好文 时间:
2015-05-07 14:14:15
阅读次数:
113
UIPopoverController只能在ipad设备上面使用;作用是用于显示临时内容,特点是总是显示在当前视图最前端,有一个箭头可以指示从哪一个button弹出来的,当单击界面的其他地方时自动消失。
(1)创建两个UIViewController类(ListViewController和oneViewController)
ListViewC...
分类:
移动开发 时间:
2015-05-06 23:05:39
阅读次数:
267
1. 遍历NavigationController栈中的视图XXView *rootViewController = nil;for (UIViewController *VC in self.navigationController.viewControllers) { if ([VC i...
分类:
其他好文 时间:
2015-05-05 21:26:57
阅读次数:
127
现实代码:.h文件@interfaceViewController : UIViewController@property(nonatomic, strong)IBOutletUILabel *attrLabel;- (IBAction)next:(id)sender;@end.m文件 在viewD...
分类:
移动开发 时间:
2015-05-05 19:08:53
阅读次数:
198