问题一
1.APP打包企业证书下载以及个人证书下载方式
打包方法及过程
(一)、个人证书打包调试
1.在需要安装应用的手机上得到手机UUID、把UUID添加到真机调试证书里
2.利用Xcode 打包,Product———Archive———Export 在选项中选择Save for Ad Hoc Deployment,导出安装包。
3.发布到蒲公英平台供有添加UUID的人下载。
(二)、¥99 企业证书打包调试
1.在需要安装应用的手机上得到手机UUID、把UUID添加到真机调试证书里
2.利用Xcode 打包,Product———Archive———Export 在选项中选择Save for Enterprise Deployment,导出安装包。
3.发布到蒲公英平台供有添加UUID的人下载。
注:导出 ipa 包时 四个选项的意义
1.Save for iOS App Store Deployment
保存到本地 准备上传App Store 或者在越狱的iOS设备上使用
2.Save for Ad Hoc Deployment
保存到本地 准备在账号添加的可使用设备上使用(具体为在开发者账户下添加可用设备的 UUID),该app包是发布证书编译的(The app will be code signed with the distribution certificate.)
3.Save for Enterprise Deployment
这种主要针对企业级账户下 准备本地服务器分发的app
4.Save for Development Deployment
针对内部测试使用,主要给开发者的设备(具体也为在开发者账户下添加可用设备的UUID)。该app包是开发证书编译的(The app will be code signed with your development certificate)
问题二
2.利用iOS原生获取当前地理位置经纬度
方法过程:
1.导入系统地图库#import
self.locationManager = [[CLLocationManager alloc]init];
_locationManager.delegate = self;
_locationManager.desiredAccuracy = kCLLocationAccuracyBest;
_locationManager.distanceFilter = 10;
[_locationManager startUpdatingLocation];
3.实现CLLocationManagerDelegate的代理方法
- (void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray *)locations
{
CLLocation *currLocation = [locations lastObject];
NSLog(@"经度=%f 纬度=%f 高度=%f", currLocation.coordinate.latitude, currLocation.coordinate.longitude, currLocation.altitude);
}
4.在viewWillDisappear关闭定位
- (void)viewWillDisappear:(BOOL)animated{
[super viewWillDisappear:animated];
[_locationManager stopUpdatingLocation];
}
注:
iOS 8需要添加[_locationManager requestAlwaysAuthorization];这句
在info.plist需要配置NSLocationAlwaysUsageDescription、NSLocationWhenInUseUsageDescription两个类型String,值可以不填
问题三
3.iOS和html利用js进行交互(参考文章[http://www.jianshu.com/p/cdaf9bc3d65d]简书上的文章、参考了一下、还可以参考iOS-标哥攻城狮的文章)