6
4
2014
6

iOS开发者证书-详解/生成/使用

本文假设你已经有一些基本的Xcode开发经验, 并注册了iOS开发者账号.

相关基础

加密算法

现代密码学中, 主要有两种加密算法: 对称密钥加密公开密钥加密.

对称密钥加密

对称密钥加密(Symmetric-key algorithm)又称为对称加密, 私钥加密, 共享密钥加密.

这类算法在加密和解密时使用相同的密钥.

例如: 最常见的应用场景 - 系统登陆.

要成功登陆系统, 你必须输入正确的密码, 这密码是唯一的, 是与创建时一样的. 同样 的, 其他人要成功登陆, 他也要输入这唯一的正确的密码.

公开密钥加密

公开密钥加密(public-key cryptography, 也称为非对称密钥加密).

这类算法在加密和解密时使用不相同的密钥.

这类加密算法对应有两个密钥: 公钥和私钥. 公钥, 是公开的, 任何人都可以获得; 私钥 , 是私密的, 只由持有者所有.

这类加密算法的特点是: 用公钥加密的内容只能用私钥解密, 用私钥加密的内容只能 用公钥解密.

这类加密算法的特点决定了, 它即可以用于实现数据加密, 又可以用于实现身份认证 (数字签名).

Category: iOS | Tags: Tools Xcode ios objc
5
28
2014
15

CocoaPods再使用

安装 CocoaPods

CocoaPods 是基于 Ruby 开发的, 其安装需要 Ruby 环境. 幸运的是 MAC 默认都是预装 好 Ruby 的.

在开始安装前, 我们有两点需要准备:

  • 确定 Ruby 环境是好的, 并配置好环境变量PATH.

编辑~/.profile~/.bash_profile , 配置PATH:

export PATH=$HOME/.rvm/bin:$PATH

Category: iOS | Tags: Tools Xcode iOS objc Pods
11
20
2013
32

iOS开发者工具(收集)

  • 四款后端服务工具

    后端服务加速了移动应用的开发,改进了可扩展性并减少了开发者对服务器端编码的需求。

  • 五大编程类工具

    iOS开发工具多如牛毛,选择一款功能强劲且实用的编程工具对开发者来说可谓是大有裨益。

  • 六大图标处理工具

    在本文中N为广大的iOS设计师整理了6款简约而不简单的图像和图标处理工具。

  • 七款Debug工具

    本文会列举几个比较有效的调试诊断工具,可以帮助你寻根究底,以最快的速度发现、解决Bug。

  • 九大设计类工具

    对于开发者和设计师来说,拥有一款功能强大且实用的开发工具能够极大提升他们的工作效率。

  • 简化开发流程的工具

    这里推荐20个可以帮你简化app开发流程的工具,涉及原型和设计、编程、测试以及最后的营销。

  • 24款免费iPad UI工具

    本文搜集了24款免费的iPad应用的用户界面开发工具,以帮助开发者提高开发效率。

  • 75个必知工具

    本文介绍了75个开发者必知的工具,按类分别列出,对开发者来说,必定要收藏啊!

 

 

Category: iOS | Tags: Tools ios objc
11
20
2013
279

About UIView content mode (UIViewContentMode)

From the documentation:

The content mode specifies how the cached bitmap of the view’s layer is adjusted when the view’s bounds change.

  • For an image view, this is talking about the image.
  • For a view that draws its content, this is talking about the drawn content. It does not affect the layout of subviews.

 

Category: iOS-Tips | Tags: ios objc uiview
11
20
2013
12

iOS Dev Tools List

FROM: http://www.alexcurylo.com/blog/2013/11/17/ios-dev-tools-list/

Here’s a handy site to add to your feeds collection:

iOS Dev Tools

iOS Dev Tools is a list showcasing the greatest iOS development tools, including websites, desktop and mobile apps, and back-end services. I’ve tried to group the tools into logical categories and will mark any newly added tools as NEW.

Think most everything there of great interest we’ve bothered mentioning at some point over the years — with the notable exception of the ‘Networking and APIs’ section, have to check those out sometime —but it certainly is nice to have them all nicely curated in one place!

While we’re on the subject, here’s a recentish list along the same lines:

75 Essential Tools for iOS Developers

Category: iOS-Tips | Tags: ios tools objc
11
20
2013
10

NSDateFormatter formatting

iOS下的日期时间字符串格式化.

Ever wonder just what you could put in NSDateFormatter format strings? Enough to actually go to the trouble of actually dumping specifiers and results? Nah, us neither. But somebody did, and here’s what they found:

a: AM/PM
A: 0~86399999 (Millisecond of Day)
 
c/cc: 1~7 (Day of Week)
ccc: Sun/Mon/Tue/Wed/Thu/Fri/Sat
cccc: Sunday/Monday/Tuesday/Wednesday/Thursday/Friday/Saturday
 
d: 1~31 (0 padded Day of Month)
D: 1~366 (0 padded Day of Year)

Category: iOS-Tips | Tags: data time ios objc
11
13
2013
142

Permanently configuring LLDB not to stop on signals

In case anyone else ever has this question, I finally solved it by adding a breakpoint in NSApplicationMain() (for plain C programs, main() would of course work as well).

I set the breakpoint action to process handle SIGUSR2 -n true -p true -s false , and enabled the "Automatically continue after evaluating" option.

Xcode 4 Breakpoint Screenshot

If anyone has a more elegant solution, I'd be happy to hear.

 

Category: iOS-Tips | Tags: debug Xcode ios objc

Host by is-Programmer.com | Power by Chito 1.3.3 beta | Theme: Aeros 2.0 by TheBuckmaker.com