ios记录

播放音乐

导入AVFoundation.framework 框架
NSURL * url = [[NSBundle mainBundle] URLForResource:@“song1.mp3” withExtension:nil];
AVAudioPlayer * player = [[AVAudioPlayer alloc] initWithContentsOfURL:url error:nil]
[player play];

UIStepper // 数字输入控件
UIWebView
UIWebView *myWebView=[[UIWebView alloc] initWithFrame:(CGRectMake(0, 0, 375, 600))];
NSURL *url=[NSURL URLWithString:@“http://www.zhihu.com/”];
NSURLRequest *request=[[NSURLRequest alloc] initWithURL:url];
[myWebView loadRequest:request];
[self.view addSubview:myWebView];

UIDevice
UIDevice *currentDevice = [UIDevice currentDevice];
NSString *name = currentDevice.name;
NSLog(@“设备名称:%@”, name);//例如: “习近平的iPhone” "Obama’s iPhone"等
NSString *model = currentDevice.model;
NSLog(@“设备模式:%@”, model);// 例如: @“iPhone”, @“iPod touch”
NSString *localizedModel = currentDevice.localizedModel;
NSLog(@“本地设备模式:%@”, localizedModel);// localized version of model
NSString *systemName = currentDevice.systemName;
NSLog(@“系统名称:%@”, systemName);// e.g. @“iOS”
NSString *systemVersion = currentDevice.systemVersion;
NSLog(@“系统版本:%@”, systemVersion);// e.g. @“4.0”
//id 序列号
NSUUID *strId = currentDevice.identifierForVendor;
NSLog(@“身份证号码:%@”, strId);

iOS 键盘方法

中文输入:
Xcode菜单项 --> Product --> Scheme --> Edit Scheme --> Run --> Option --> Application Region 设置为 “中国”
UIKeyboardTypeDefault, // 默认键盘:支持所有字符
UIKeyboardTypeASCIICapable, // 支持ASCII的默认键盘
UIKeyboardTypeNumbersAndPunctuation, // 标准电话键盘,支持+*#等符号
UIKeyboardTypeURL, // URL键盘,有.com按钮;只支持URL字符
UIKeyboardTypeNumberPad, //数字键盘
UIKeyboardTypePhonePad, // 电话键盘
UIKeyboardTypeNamePhonePad, // 电话键盘,也支持输入人名字
UIKeyboardTypeEmailAddress, // 用于输入电子邮件地址的键盘

解决问题:
RAC MVVM session

单例模式 委托模式 观察者模式 MVC模式

怎么做到搜索本地的文件 ALasset asset

仿射动画 等动画 图文混排 单元格问题

瀑布流 xmpp xmpp 融云环信

音乐 视频播放 掌握 后台播放 横竖屏

地图 即时通讯 支付 分享第三方 share SDK 友盟

pda扫条形码 二维码功能 zbar zxing 在线直播 录音 webView应用
公司做的 app 应用 实用性

block回调 代理方法熟练 网络解析

数据库 存储应用

wifi 获取摄像头的 ip地址

Sublime Text

XMPPFramework核心类介绍:http://www.henishuo.com/xmppframeworkd-core-introduce/ 刚出炉的文章,良心打造

iOS调试技巧:http://www.henishuo.com/ios-lldb-debug-tech/ 千万不要错过哦,绝无仅有的资源~

iOS深拷贝与浅拷贝精讲:http://www.henishuo.com/ios-shadowcopy-deepcopy/ 如果你还在讨论深拷贝与浅拷贝的问题,不如看看这篇文章~

git在开发中的使用:http://www.henishuo.com/git-use-inwork/ 作为开发人员怎么会不使用版本控制呢?那么你掌握git的基本使用了吗?不如阅读试试自己到底了解多少~

你可能感兴趣的:(iOS)