- 博客(4)
- 资源 (1)
- 收藏
- 关注
原创 swift:用UIWebView读取本地html文件
把html文件拖至项目里,我起名为myhtml(可以放根目录,也可以放自己建的group里) 加入如下代码 let file=NSFileManager.defaultManager().contentsAtPath(NSBundle.mainBundle().pathForResource("myhtml", ofType: "html")) webView.loadData(fil
2016-03-28 18:17:16
3338
原创 使用AddressBook来获取通讯录消息
本文为swift代码,且AddressBook于ios9被废除了,ios9或以上请了解contact 首先引入模块 import AddressBook定义 var ab:ABAddressBookRef? 获取 let sysAddressBookStatus = ABAddressBookGetAuthorizationStatus() if (sysA
2016-03-13 14:06:55
328
原创 swift自制工厂模式
import Foundation //基本单位 class CommonBean:NSObject{ required override init() { super.init() } } class Service:CommonBean{ func getUID(){ print(
2016-03-08 11:13:33
395
原创 文件上传框的自定义
拍照 $(function(){ $("#photo").change(function(e){ var file = e.target.files[0]||e.dataTransfer.files[0]; if(file){ var reader = new FileReader(); rea
2016-02-29 17:53:44
355
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅