码迷,mamicode.com
首页 >  
搜索关键字:uiviewcontroller    ( 1229个结果
SWIFT中获取当前经伟度
很多的APP中都会用到用户的当前位置信息,本文将实现这个小功能import UIKitimport CoreLocation //添加引用class ViewController: UIViewController,CLLocationManagerDelegate { let locati...
分类:编程语言   时间:2015-05-20 23:52:46    阅读次数:177
loaded the "XXXView" nib but the view outlet was not set 解决方案
'-[UIViewController _loadViewFromNibNamed:bundle:] loaded the "XXXView" nib but the view outlet was not set.'查书才知道,没有做nib文件到xxxViewControler程序的关联,特此记录...
分类:其他好文   时间:2015-05-20 21:56:37    阅读次数:122
基本组件的使用——UITabBarController
和UINavigationController的作用差不多,UITabBarController也可以在多个UIViewController中切换 这个控件的使用相对简单,只需要为该控件的viewControllers添加引用就可以了,然后将根视图控制器设置为该控件即可。如下图所示。 最终效果: 实...
分类:其他好文   时间:2015-05-20 12:49:22    阅读次数:164
loadView、viewDidLoad及viewDidUnload的关系
标题中所说的3个方法,都是UIViewController的方法,跟UIViewController的view属性的生命周期息息相关。接下来我会一一阐述它们的作用以及它们之间的联系。loadView1.什么时候被调用?每次访问UIViewController的view(比如controller.vi...
分类:其他好文   时间:2015-05-19 16:21:11    阅读次数:107
Swift学习—Swift中写UI代码
// // ViewController.swift // 02SwiftUI // // Created by on 15/5/19. // Copyright (c) 2015年 wujiafeng. All rights reserved. // import UIKit class ViewController: UIViewController { over...
分类:编程语言   时间:2015-05-19 15:05:24    阅读次数:194
第三章 控件使用
#import @interface ViewController : UIViewController@property (weak, nonatomic) IBOutlet UISwitch *leftswitch;@property (weak, nonatomic) IBOutlet UIS...
分类:其他好文   时间:2015-05-18 20:30:18    阅读次数:138
IOS-封装弹出框
1.封装弹出框,包括设置弹出界面 设置弹出地点 弹出 消失等方法。大概封装如下 #import @interface WBDropdownMenu : UIView @property (nonatomic,strong) UIView *contentView; @property (nonatomic,strong) UIViewController *cntController;...
分类:移动开发   时间:2015-05-17 21:52:09    阅读次数:192
IOS AVAudioPlayer 播放音频 没有声音问题解决
#import #import @interface MainViewController : UIViewController@property(nonatomic,strong)AVAudioPlayer *movePlayer ;@end#import "MainViewController....
分类:移动开发   时间:2015-05-17 11:57:46    阅读次数:229
IOS:UI设计之UINavigationController,NavigationBar,ToolBAR相关基础
基本概念:导航视图控制器(UINavigationController)是用于构建分层应用程序的主要工具,管理着多个内容视图的换入和换出,并且自身提供了视图切换的动画效果(例如:相册,QQ,微信等APP应用)。 它的父类是UIViewController,是所有视图控制器的基类,导航控制器以栈...
分类:移动开发   时间:2015-05-14 06:11:49    阅读次数:324
【iOS开发-数据传递】关于两个Controller跳转时的数据传递
正向传递当一个控制器切换到下一个控制器的时候,这个时候的数据传递为正向传递,所以只需要跳转之前执行一个方法就行。/*就是执行控制器跳转之间的那条线之前做的方法*/ - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { // 1.取得目标控制器 UIViewController *contactVc...
分类:移动开发   时间:2015-05-13 14:48:35    阅读次数:133
1229条   上一页 1 ... 76 77 78 79 80 ... 123 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!