kongkong's Blog

No Silver Bullet --- Computer Language is just a tool.

IOS Develop And Distribution 的一些概念

| Comments

参考:http://www.cnblogs.com/zilongshanren/archive/2011/08/30/2159086.html

一些概念:

UDID: unique device Idetifier,是区分物理设备的唯一标识。

Certificate :认证; Certification:证书

Code signing :如果没有code signing,你只可以在模拟器上,或者一台越狱过的机器上运行你的应用----当然,仅仅如此是不能满足我们的

与Code Signing有关的东西有:

  Provisioning Profiles,App IDs,UDIDs …

Code Signing是一个综合性的东西。

生成Certification证书的时候,从钥匙串--从证书颁发机构获取,这个过程中会加密,生成 public key与private key,然后将生成的文件上传到apple生成certification。
public key和private key是很重要的,因为要验证信息,证书是生成provision profile时候要用到的东西。

Certification证书下载后,双击自动被安装到OSX上的钥匙串keychain中的Login中,可以右键点击导出p12的文件,这个p12文件可以转移到其他电脑上使用(或者系统重装后备份使用)。

最终会生成develop和distribute对应的provision profile分别用于开发测试与发布.

在XCode的Preferences中的Accounts中可以看到appleId对应的开发者帐号信息,可以查看详情,可以刷新你的profiles列表(在你更新了profile的情况下)

一些名词:

WWDC:world wide devlelop conference

ios6 升级到ios7,app出现的问题与解决

| Comments

1.隐藏status bar

iOS 7 apparently supports the Status Bar being hidden for some views but not others. To hide it for all views, do the following:

​1) Make sure Hide during application launch is still checked, to support previous OS versions.

 2) In your Info.plist file, add View controller-based status bar appearance and set it to NO.
3) You may need to "Clean" before building, (I did), but then your app should work as before: no status bar hanging over your views!

Android sdk download and compiles

| Comments

参考官方http://source.android.com/source/downloading.html

To install Repo:

Make sure you have a bin/ directory in your home directory and that it is included in your path:

$ mkdir ~/bin
$ PATH=~/bin:$PATH

Download the Repo tool and ensure that it is executable:
$ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
$ chmod a+x ~/bin/repo

Initializing a Repo client

After installing Repo, set up your client to access the Android source repository:

Create an empty directory to hold your working files. If you're using MacOS, this has to be on a case-sensitive filesystem. Give it any name you like:

$ mkdir WORKING_DIRECTORY
$ cd WORKING_DIRECTORY

Run repo init to bring down the latest version of Repo with all its most recent bug fixes. You must specify a URL for the manifest, which specifies where the various repositories included in the Android source will be placed within your working directory.

$ repo init -u https://android.googlesource.com/platform/manifest

To check out a branch other than "master", specify it with -b:

$ repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1
-u 指的是url -b指的是branch下载哪一个分支。

对于出现无法下载:

error: Failed connect to android.googlesource.com:443;Connection refused while
解决方法:
$ vim /etc/hosts

增加下面内容,保存(提前保存好):

74.125.31.82 www.googlesource.com

74.125.31.82 android.googlesource.com

203.208.46.172 cache.pack.google.com

59.24.3.173cache.pack.google.com

and start the development…

建立本地android mirror
http://www.360doc.com/content/11/0923/16/474846_150658565.shtml
git-daemon:
http://blog.csdn.net/leopard_ray/article/details/4306987

为 iOS 7 设计

| Comments

iOS 7正式发布有一段时间了,今天有时间专心研究一下如何为iOS 7设计。归纳一下主要的点。

  1. 三大主题

    顺从。界面的作用是帮助用户理解内容、和内容交互,而不是与内容竞争。
    明晰。每个字号的字体都清晰可辨,icon精确易懂,装饰元素恰如其分,对于功能的精确聚焦是设计驱动力。
    深度。通过可视化的层、逼真的动画,加深用户的愉悦和理解。

  2. iOS 7的美学重视平缓、分层——尽量少使用让UI元素看起来拟实的视觉效果。

  3. item

参考:http://mued.sohu.com/2013/06/ios-7-ui-transition-guide/

官方档:https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/TransitionGuide/index.html