
zlib Home Site NSSortDescriptor - 俺是一个瓜娃!!! - ItEye技术网站 Specifying Sorts Using NSSortDescriptor Let’s assume, as an example, that we have an array (an instance of NSArray) containing instances of a custom class, Employee (that meets the requirements set out in “Requirements of Collection Objects”). The Employee class has attributes for an employee’s first and last name (instances of NSString), date of hire (an instance of NSDate), and age (an instance of NSNumber). 1:Sorting the array by the age key ageDescriptor = [[[NSSortDescriptor alloc] initWithKey:@"age" ascending:YES] autorelease]; sortDescriptors = [NSArray arrayWithObject:ageDescriptor]; sortedArray = [employeesArray sortedArrayUsingDescriptors:sortDescriptors]; ageDescriptor = [[[NSSortDescriptor alloc] initWithKey:@"age" ascending:YES] autorelease]; sortDescriptors = [NSArray arrayWithObject:ageDescriptor]; sortedArray = [employeesArray sortedArrayUsingDescriptors:sortDescriptors]; 2:Sorting the array by the age and date of hire key Specifying Custom Comparisons 写道
Tenius iPhone Icon Set | Icons Depot The Tenius iPhone Icon Set is an elegant and attractive set of icons designed for the iPhone. Price: FreePackage: Dozens of icons suitable for use on the iPhone and possibly as web icons.License: Free, no specific terms provided (iPhone use). 把Iphone程序连接真机调试--中国移动开发者社区 对于真机调试,首先要在苹果网站上注册APP ID,以及购买iPhone Develop Program(iDP) 开发者授权,99美元。然后要创建证书请求CSR,创建步骤如下: 设置OCSP和CRL为关闭状态。 Mac OS 中,打开应用程序,找到 钥匙串访问(Keychain Access)工具打开主菜单 - 证书助理(Certificate Assistant)-从证书代理请求证书(Request a Certificate From a Certificate Authority)输入iDP注册时的email,用户名自定义,选择“存储到磁盘”,选择‘Let me specify key pair information’。 选择保存路径,证书请求创建成功。 1.接下来就可以登录iDP Portal提交证书请求了,到这个页面 点Development,‘Request Certificate’,然后点Browser,添加刚才生成的证书,点submit。 点击Approve,一分钟后会生成一个.cer文件。 下载Download,双击它。 单击“好”,就可以把certificate加入到keychain里面了。 2. 打开XCODE,在window菜单下,点击Organizer,出现这个页面(前提是要连上真机哦) identifier那一行字符就是device id了,复制它。 点击“Add Devices” 给device name取个自己的名字,把之前复制的字符粘贴到Device ID那,点下面的submit就可以了 3.
申请IDP图文教程 | App Store上线/推广/销售讨论区 - CocoaChina 开发讨论区 最热的iOS开发论坛| 最热的Mac开发论坛 | 最热的iPhone开发论坛 | 最热的iPad开发论坛 在cocoachina受益良多,现写一个idp申请的图文教程回报cocoachina~ 图1 申请账号后点击图1中的join the iphone developer program图2 点击图2中的enroll now图3 继续点击图3中的enroll now图4 由于之前注册过账号,这里直接先使用已存在账号,点击continue图5 图5中是选是个人idp还是公司还是299$的(299$的没有使用过,不多作介绍,公司的可以多个user,但是发布只能是最高权限的人发布,同时注册时需要提供公司营业执照)图6 图6中就照实添写,注意的是下面内容是和信用卡一样的,地址是账单地址。 输入完之后会显示图7的内容,核对后点击continue图8 图9 下载图8中的pdf,添写里面的表格,注意,enrollment id,person id,fullname,email,phone要与图8中的一致,如果误关了图8页面请照图9重新打开pdf可以用ps在上面直接打字,签名可以手写之后照相然后P上。 照图9新建一个用户,并选中用户保存 图11 图12 图13 图14 照图10选择国家,图11中选择lookup your bank,图12,13搜索到后选择银行 图15 依照图14写银行账号,用户名,钱选USD吧 图16 图15确认 图17 完成后会出现图16的效果。 小学语文老师教过,读文章要先从头到尾看一遍再细读。 希望各位申请好的大大帮助检查下错误,以免误导别人。
使用XCode联机调试你的iOS应用(2010年10月新版) | Swfdong's Blog 本文仅发布在Swfdong’s blog(blog.swfdong.org)及9ria天地会(bbs.9ria.com),转载请注明出处。 今天发烧了,带病完成这篇文章,希望能对大家有所帮助:-) 说起来,iDP(iOS Developer Program)的申请并不难,填写所有信息,然后发一封邮件就可以了。 而在iDP申请完成之后,很多开发者要做的第一件事就是在设备上测试应用,因为很多特性是模拟器不支持的(比如多点触控,重力感应等),今天带给大家的就是联机调试iPhone程序的完成流程。 准备工作很简单,用于开发的Mac电脑一台,运行Mac OS X 10.6.4,XCode版本3.2.4 然后登录到Apple的iOS Dev Center: 登录后在右上方点击”iOS Provisioning Portal“,进入如下页面: 点击“Launch Assistant”,出现如下窗口: 这一页没耐心看的就直接点“Continue”,进行下一步操作。 创建一个App ID,在输入框中输入描述,一般来说直接写应用名字就可以了,但是要注意不能含有一些特殊字符,点击“Continue”继续。 在Device Description一栏输入设备描述,如“My iPhone 3Gs”; 在Device ID一栏输入设备ID,从XCode的顶部工具栏->Window菜单->Organizer项开启Organizer窗口,选中要用于调试的设备,Indetifier项就是我们需要的设备ID,复制至Device ID栏即可,点击“Continue”继续。 这里直接点击Continue继续,不要关闭网页。 打开”钥匙串访问”程序(位于Mac OS X的“应用程序->使用工具”目录下),打开屏幕左上方“钥匙串访问”菜单,点选“证书助理->从证书颁发机构求证书”项。 在出现的窗口中填写证书信息,电子邮件地址一栏填写申请iDP时使用的电子邮箱,常用名称是待申请的证书名,比如可以填写“My iOS Dev Key”;别忘了选中下面的“储存到磁盘”,点击“继续”。 此时证书签名请求就生成好了,我们马上就要用到这个请求文件。 回到网页中,点击“选取文件”按钮,选刚刚择生成好的签名请求文件,点击“Continue”继续。
iPhone开发技巧之网络篇(4)— 确认网络环境 3G/WIFI | YIFEIYANG 博主:易飞扬原文链接 : iPhone开发技巧之网络篇(4)--- 确认网络环境 3G/WIFI 开发Web等网络应用程序的时候,需要确认网络环境,连接情况等信息。如果没有处理它们,是不会通过Apple的审查的。 Reachability Apple 的 例程 Reachability 中介绍了取得/检测网络状态的方法。 然后将 SystemConfiguration.framework 添加进工程: Reachability 中定义了3种网络状态。 NotReachable无连接ReachableViaCarrierDataNetwork (ReachableViaWWAN)使用3G/GPRS网络ReachableViaWiFiNetwork (ReachableViaWiFi)使用WiFi网络 比如检测某一特定站点的接续状况,可以使用下面的代码: 检测当前网络环境 程序启动时,如果想检测可用的网络环境,可以像这样。 连接状态实时通知 网络连接状态的实时检查,通知在网络应用中也是十分必要的。 Reachability 1.5 Reachability 2.0 AppDevMag gdata-objectivec-client - Google Data APIs Objective-C Client Library The Google data APIs provide a simple protocol for reading and writing data on the web. Many Google services provide a Google data API. This library is for Google XML APIs. For JSON APIs, use the Google APIs Client Library for Objective-C. Each of the following Google services provides a Google Data API supported by this library: This library should no longer be used for these APIs: Google Analytics (superseded by a JSON API) Blogger (superseded by a JSON API) Book Search (superseded by a JSON API) Calendar (superseded by a JSON API) Code Search (deprecated) Documents List (deprecated; superseded by the Drive JSON API) Finance (deprecated) Health (deprecated) Maps (deprecated) YouTube (superseded by a JSON API) The Google Data APIs Objective-C Client Library provides an iPhone static library, a Mac OS X framework, and source code that make it easy to access data through Google Data APIs. To browse the Google Objective-C client framework source code, visit the Source tab.
10 iOS Libraries to Make Your Life Easier The operating system that powers Apple’s iPhone and iPad devices, iOS, has proved incredibly popular with developers. A large part of this is almost certainly due to the opportunity that the App Store gives developers to make money, but the great development tools that Apple provide, in the form of XCode and Interface Builder, and also the Objective-C programming language, which iOS developers are required to use, certainly play their part. The iOS SDK that developers use to build iPhone and iPad apps is relatively low level, requiring the developer to do a lot of work to get their app up and running. Fortunately there are lots of third party libraries available that provide useful functionality that can make your life as an iOS developer much easier. MBProgressHUD – Progress Indicator Library Many official Apple apps have a nice translucent progress display. ASIHttpRequest – HTTP Network Library JSON Framework – JSON Support Flurry – Detailed Usage Statistics CorePlot – 2D Graph Plotter