Category: Objective C

How to set up your own private RTMP server using nginx

https://obsproject.com/forum/resources/how-to-set-up-your-own-private-rtmp-server-using-nginx.50/   How to set up your own private RTMP server using nginx Authordodgepong Creation dateMar 24, 2014 Overview Updates (1) Reviews (19) Discussion Most people who stream enjoy using services such as Twitch.tv or Ustream to deliver video to viewers, and that works well enough. But sometimes you want some more control over your…

Continue reading How to set up your own private RTMP server using nginx

iOS – 使用系统地图进行导航

iOS – 使用系统地图进行导航 96 码上有钱 关注 2016.08.03 14:13* 字数 254 阅读 521评论 1喜欢 4 由于项目中少部分用到定位导航功能,就学习了一下这方面的知识,有自己总结的,也有从大神那里学习到的,有错误的地方希望有大神可以帮我提出,立即改正,写这篇文章的目的主要是想自己做个笔记,省的以后再做的时候耽误时间 整体思路:在视图即将显示的时候实例化LocationManger对象,设置代理,在代理方法中获取到用户的经纬度,然后反地理编码,把经纬度转化成文字,赋值给cityStr,设置导航 模拟器使用时需手动设置经纬度,也有可能设置好了,运行项目也不会执行,所以建议使用真机测试 ![43568E90-BBCB-4B2E-A73A-15618058F8AD.png](http://upload-images.jianshu.io/upload_images/1707826-67d3ce658f2fe9b7.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) CLLocation 常用属性简介 CLLocationDegrees latitude;纬度 CLLocationDegrees longitude;经度 @property(readonly, nonatomic) CLLocationCoordinate2D coordinate; 坐标,只有x.y @property(readonly, nonatomic) CLLocationDistance altitude;海拔 @property(readonly, nonatomic) CLLocationAccuracy horizontalAccuracy;水平经度 @property(readonly, nonatomic) CLLocationAccuracy verticalAccuracy;垂直经度 版本支持 判断版本,如果大于iOS8需要进行授权 ,同时配置plist文件 ![Uploading C0002AE7-960C-4E3A-B2A6-F7A30C1DCBAD_053280.png . . .] NSLocationWhenInUseUsageDescription NSLocationAlwaysUsageDescription 这两个key CLLocationManagerDelegate 说明 //定位更新;从oldLocation到了newLocation;方法过期,如果实现了locationManager:didUpdateLocations:,该方法不被调用…

Continue reading iOS – 使用系统地图进行导航

IOS 字典模型互转框架 MJExtension

IOS 字典模型互转框架 MJExtension 转载 2017年04月08日 17:01:42 202 MJExtension是一套字典和模型之间互相转换的超轻量级框架 MJExtension能完成的功能 字典(JSON) –> 模型(Model) 模型(Model) –> 字典(JSON) 字典数组(JSON Array) –> 模型数组(Model Array) 模型数组(Model Array) –> 字典数组(JSON Array) 详尽用法主要参考 main.m中的各个函数 以及 NSObject+MJKeyValue.h MJExtension和JSONModel、Mantle等框架的区别 转换速率: 最近一次测试表明:MJExtension > JSONModel > Mantle 各位开发者也可以自行测试 具体用法: JSONModel:要求所有模型类必须继承自JSONModel基类 Mantle:要求所有模型类必须继承自MTModel基类 MJExtension:不需要你的模型类继承任何特殊基类,毫无污染,毫无侵入性 如何使用MJExtension cocoapods导入:pod ‘MJExtension’ 手动导入: 将MJExtensionExample/MJExtensionExample/MJExtension文件夹中的所有源代码拽入项目中 导入主头文件:#import “MJExtension.h” MJExtension.h MJConst.h MJConst.m MJFoundation.h MJFoundation.m MJIvar.h MJIvar.m…

Continue reading IOS 字典模型互转框架 MJExtension