摘要:// 某年某月的天数- (NSInteger)dayCount:(NSInteger)years{ NSInteger count = 0; for (int i = 1; i <= 12; i++) { if (2 == i) { if((years...
阅读全文
摘要:在iPhone中可以很方便的预览文档文件,如:pdf、word等等,这篇文章将以PDF为例。介绍三种预览PDF的方式,又分别从本地pdf文档和网络上的pdf文档进行对比。预览本地PDF文档:1、使用UIWebView控件UIWebView是iPhone开发中最常用的控件之一,类似.net中的webB...
阅读全文
摘要:NSArray *subviews = [_bgImageView subviews]; for (id objInput in subviews) { if ([objInput isKindOfClass:[UITextField class]]) { ...
阅读全文
摘要:如果觉得在iOS 7启动期间状态栏黑色不合你意,以下方法可改变Status bar style成白色在工程的plist添加 Status bar style,改变style值默认是Gray style,选择后面两个任意一个都可以改变之后启动图:更多方法请参考:1.http://stackoverfl...
阅读全文
摘要:1. 在UIModalPresentationFormSheet(iPad device,without a UINavigationController)下的视图中,如果使用[inputView resignFirstResponder];是不能把Keyboard收起的,需要使用以下的方式:A: ...
阅读全文
摘要:项目用SVN比较多,所以大家都把精力放在如何在XCODE上使用SVN。配置SVN当然是很简单,但提交都默认出现git的提交窗,否则要到repositories界面去提交。目前没有找到什么更好的办法,就做了两个处理:1.在Repositories里面把 相应的 git相关的项目目录移除(见界面左下角的...
阅读全文
摘要:原则上iOS的沙箱原理,是阻止一个app去访问其他app的资源乃至是系统底层的资源的但是我们可以通过一种变相的方式:通过对应的URL模式和其他程序进行通讯.iOS应用之间的调用步骤:一,调用自己开发的应用1)在plist文件中,注册对外接口在xcode group&files里面,展开resourc...
阅读全文
摘要:7.Occupant Use CasesThe main actor in a multi-user chat environment is the occupant, who can be said to be located "in" a multi-user chat room and to ...
阅读全文
摘要:6.Entity Use CasesA MUC implementation MUST supportService Discovery[7].服务端必须实现 service discover6.1Discovering Component Support for MUC发现服务器是否支持mucA ...
阅读全文
摘要:Roles and AffiliationsThere are two dimensions along which we can measure a user's connection with or position in a room. One is the user's long-lived...
阅读全文
摘要:翻译来自 :http://wiki.jabbercn.org/index.php?title=XEP-0045&variant=zh-cn#.E6.9C.AF.E8.AF.AD通用术语Affiliation(岗位)-- 一个长期存在的和房间之间的联系或连接; 可能的岗位有 "owner"(所有者),...
阅读全文