1 // ViewController.m 2 // 04-掌握-NSURLConnection发送GET请求 3 // 4 // Created by xiaomage on 16/2/22. 5 // Copyright © 2016年 小码哥. All rights reserved. 6 / ...
分类:
Web程序 时间:
2016-10-27 00:26:10
阅读次数:
303
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) { self.viewController = [[ViewController alloc] initWithNibName:@"ViewController_iPhone" b ...
分类:
移动开发 时间:
2016-10-25 11:42:35
阅读次数:
193
First ViewController Second ViewController ...
分类:
移动开发 时间:
2016-10-24 23:10:14
阅读次数:
352
1 #import "ViewController.h" 2 #import <UIKit/UIMenuController.h> 3 4 @interface ViewController ()<UIScrollViewDelegate> 5 @property (strong, nonatomi ...
分类:
其他好文 时间:
2016-10-23 17:21:05
阅读次数:
182
前言: 在iOS中抽屉动画是很常用的一种技术,使用它有很炫的体验效果,为app增添特色,形式就两种,一个是UIView的侧滑,另一个就是ViewController的侧滑。 实现方式: 抽屉侧滑动画有三种方式,一种是UIView的侧滑;一种是使用MMDrawerController框架实现控制器的侧 ...
分类:
移动开发 时间:
2016-10-23 14:13:07
阅读次数:
473
iOS页面传值方式 应用于: 几种传值方式: 1.属性传值(顺传): 实现:A、B两个界面,通过按钮将A界面textField的值传给页面B的label。 A:ViewController B:DetailViewController 2.代理传值(顺传倒传都可以) delegate只能是一对一之间 ...
分类:
移动开发 时间:
2016-10-20 00:14:36
阅读次数:
218
#import "ViewController.h" //导入CoreLocation库后导入其头文件 #import <CoreLocation/CoreLocation.h> //从iOS8开始,框架的导入也可以使用这种方式 //@import CoreLocation; @interface ...
分类:
移动开发 时间:
2016-10-17 23:12:43
阅读次数:
245
导航视图 1、创建导航视图根视图: 2、跳转到新视图控制器: 3、返回之前的视图控制器: 备注:这里各个压入堆栈中的ViewController 都采用self.navigationController获取导航控制器。可参考下文: http://kingbinchow.iteye.com/blog/ ...
分类:
其他好文 时间:
2016-10-16 16:50:24
阅读次数:
208
使用 AVCaptureSession进行实时采集音视频(YUV、),编码 通过AVCaptureVideoDataOutputSampleBufferDelegate获取到音视频buffer- 数据 分别对音视频原始数据进行编码 传输 ViewController AACEncoder H264E ...
分类:
其他好文 时间:
2016-10-16 16:39:47
阅读次数:
540
系统默认导航栏的返回按钮和返回方式 在默认情况下,导航栏返回按钮长这个样子 导航栏默认返回按钮 导航栏默认返回按钮 导航栏左上角的返回按钮,其文本默认为上一个ViewController的标题,如果上一个ViewController没有标题,则为Back(中文环境下为“返回”)。 在默认情况下,导航 ...
分类:
其他好文 时间:
2016-10-14 20:45:08
阅读次数:
230