在考虑iOS或Android应用程序开发时,我们大多数人会首先考虑Objective-C vs Swift和Java。作为本地技术堆栈,当涉及到iOS和Android应用程序开发时,它们自然是最常用的移动开发工具。但是,还有更多方法来构建高性能和用户友好的移动应用程序。而Xamarin就是其中之一。 ...
分类:
移动开发 时间:
2018-06-10 11:41:31
阅读次数:
5844
集成步骤不说了,自己看文档吧:极光推送iOS文档 直接上代码了: 实现: AppDelegate.h中: AppDelegate.m中: Demo地址:https://github.com/domanc/JPushManager.git ...
分类:
其他好文 时间:
2017-03-31 16:37:36
阅读次数:
545
iOS app分享至好友,朋友圈,收藏,在iOS9系统之前,都是没问题的,当在iOS9系统之上的,提示没有安装客户端。如下图:
其实是这样的:
根据友盟社会化分享iOS文档 ,如果使用了如SSO授权登录或跳转分享功能,在iOS9下就需要增加一个可跳转的白名单,指定对应跳转App的URL Scheme,否则将在第三方平台判断是否跳转时用到的canOpenURL时返回NO,进而...
分类:
微信 时间:
2016-05-07 08:11:25
阅读次数:
1027
1 // 2 // ViewController.m 3 // HelloWorld 4 // 5 // 6 // 7 #import "ViewController.h" 8 @interface ViewController () 9 @end 10 @implementation ViewCo
分类:
移动开发 时间:
2016-01-30 18:09:59
阅读次数:
234
1.2基本功能集成指南提示 请先在友盟的消息推送管理后台中创建App,获得AppKey和AppSecret 导入SDK下载 UMessage_Sdk_All_x.x.x.zip并解压缩导入插件所需SDK文件夹:UMessage_Sdk_x.x.x请在你的工程目录结构中,右键选择Add->Exist....
分类:
移动开发 时间:
2015-12-26 11:44:28
阅读次数:
270
将自己的App注册到iOS,就要用到iOS文档处里的功能,我们注册我们的程序用来处理我们自己特殊的文档类型。 首先,我们要在Info.plist文件中设置Document types <key>CFBundleDocumentTypes</key>
<array>
...
分类:
移动开发 时间:
2015-09-05 00:13:34
阅读次数:
235
NSFileManager中的attributesOfItemAtPath:方法可以获取沙盒内的文件信息,其中就有NSFileCreationDate和NSFileModificationDate两个属性分别代表文件创建时间和修改时间,我们可以比较两个文件的这两个属性,实现按时间排序。
常用的两种排序方法有sortedArrayUsingSelector:和sortedArrayUsingComp...
分类:
移动开发 时间:
2015-05-21 15:35:31
阅读次数:
178
对象归档:概念:对象归档是指将对象写入文件保存在硬盘,当再次又一次打开程序时,能够还原这些对象。也称:对象序列化、对象持久化。数据持久性的方式(事实上就是3类)1,NSKeyedArchiver——对象归档2,NSUserDefaults 3,属性列表4,SQLite数据库 5,Core Data数...
分类:
移动开发 时间:
2015-05-08 14:34:13
阅读次数:
158
Working with Constraints in Interface Builder
The easiest way to add, edit, or remove constraints is to use the visual layout tools in Interface Builder. Creating a constraint is as simple as Contr...
分类:
移动开发 时间:
2015-02-11 16:48:10
阅读次数:
631
苹果公司的ios文档(https://developer.apple.com/library/ios/documentation/Cocoa/Conceptual/Multithreading/RunLoopManagement/RunLoopManagement.html)介绍里面,port-based作为线程之间的通信花了很长篇幅来介绍。但是有趣的是,当我尝试去使用machport的时候,xc...
分类:
移动开发 时间:
2014-12-27 23:12:12
阅读次数:
234