摘要: 水波纹效果 Code 1.-(void)drawRect:(CGRect)rect {2. [super drawRect:rect];3. [[UIColor colorWithRed:22 / 255.0 green:163 / 255.0 blue:130 / 255.0 alpha:1] s 阅读全文
posted @ 2016-02-24 20:58 Emerys 阅读(261) 评论(0) 推荐(0)
摘要: 指纹识别 1. // 创建一个本地认证的上下文对象2. LAContext *ctx = [[LAContext alloc] init];3.4. // 检测设备是否支持指纹识别5. if ([ctx canEvaluatePolicy:LAPolicyDeviceOwnerAuthenticat 阅读全文
posted @ 2016-02-23 22:09 Emerys 阅读(189) 评论(0) 推荐(0)
摘要: 地图 1.#import "ViewController.h"2.#import <MapKit/MapKit.h>3.4.@interface ViewController () <CLLocationManagerDelegate, MKMapViewDelegate> {5.6. // 苹果原 阅读全文
posted @ 2016-02-23 22:07 Emerys 阅读(346) 评论(0) 推荐(0)
摘要: 相机 1.2.3.#import "ViewController.h"4.5.@interface ViewController () <UINavigationControllerDelegate, UIImagePickerControllerDelegate>6.@property (weak 阅读全文
posted @ 2016-02-23 22:02 Emerys 阅读(268) 评论(1) 推荐(0)
摘要: 播放音乐 1.2.#import "ViewController.h"3.#import <AVFoundation/AVFoundation.h>4.5.@interface ViewController () <AVAudioPlayerDelegate> {6. AVAudioPlayer * 阅读全文
posted @ 2016-02-23 21:57 Emerys 阅读(231) 评论(0) 推荐(0)
摘要: 录音 1.#import "ViewController.h"2.#import "CDMyUtil.h"3.#import <AVFoundation/AVFoundation.h>4.5.@interface ViewController () {6. AVAudioRecorder *myRe 阅读全文
posted @ 2016-02-23 21:50 Emerys 阅读(194) 评论(0) 推荐(0)
摘要: @interface AppDelegate () <NSURLConnectionDataDelegate> { NSMutableData *mData;}@end@implementation AppDelegate- (BOOL)application:(UIApplication *)ap 阅读全文
posted @ 2016-02-23 21:42 Emerys 阅读(145) 评论(0) 推荐(0)
摘要: UITableView 简单使用 遵守数据源协议和代理协议,创建tableView,指定数据源和代理 1. //创建一个 TabView2. UITableView *tabView = [[UITableView alloc] initWithFrame:self.view.bounds3. st 阅读全文
posted @ 2016-02-23 18:49 Emerys 阅读(292) 评论(0) 推荐(0)
摘要: UIPageControl 简单使用 1. pageControl = [[UIPageControl alloc] init];2. pageControl.frame = CGRectMake((self.view.bounds.size.width - 100) / 2.0,3. self.v 阅读全文
posted @ 2016-02-23 15:39 Emerys 阅读(305) 评论(0) 推荐(0)
摘要: UIScrollView 一般会使用到的 1. scrollView = [[UIScrollView alloc]2. initWithFrame:CGRectMake(0, 20, self.view.bounds.size.width,3. self.view.bounds.size.heig 阅读全文
posted @ 2016-02-23 15:22 Emerys 阅读(110) 评论(0) 推荐(0)