2011年12月5日 星期一

Lala's Program Note 實作記錄: 34. App 上架

since: 2011/12/05
update: 2011/12/10


App status
Waiting For Review: 2011/12/05
In Review: 2011/12/09
Processing for App Store: 2011/12/09
Ready for Sale: 2011/12/09


A. 首先登入 iTunes Connect 網站, 可以看到六大功能:
   1. Sales and Trends: 銷售趨勢報告.

   2. Contracts, Tax, and Banking: 管理銀行帳戶資訊.

   3. Payments and Financial Reports: 每個月的財政報告與支付的款項. 

   4. Manage Users: 為帳號設定存取權限.

   5. Manage Your Applications: 管理在 iTunes Store 上的 App.

   6. Contact Us: 問題查詢與提問.

--------------------------------------------------------------------------------

B. 新增 App:
   1. 點選: Manage Your Applications > Add New App

   2. 輸入在 App Store 顯示的主要語言及公司名稱.
       說明: 確定後即會與此帳號綁定, 以後無法修改.
       Primary Language: English
       Company Name: Lanli's Studio

   3. 設定 App 的資訊:
      App Name: Lala's Notes // App Store 上的顯示名稱, 不可重覆
      SKU Number: 001         // 用來識別你自己的不同 App, 不可更改
      Bundle ID: com.blogspot.LalaProgramNote // 須先建立好, 不可更改

   4. 設定銷售資訊:

   5. 設定 App 的詳細介紹:
      Version Number: 1.0.0 // App 的版本

      Description: A notebook with cute cat background. // App 的描述

      Primary Category: Book // App 的主要分類

      Secondary Category (optional): Productivity // App 的次要分類

      Keywords: note, notebook // App 的關鍵字

      Copyright: 2012 Lanli's Studio Inc // 所有權宣告

      Contact Email Address: lanli0210@gmail.com // Apple 聯絡我們的信箱

      Support URL: http://lala-s-notes.blogspot.com/ // 客戶支援的網站

      App URL (optional): // 關於此 App 的網站

      Review Notes (optional): // 給 Apple 評審人員的備註說明.

      Rating: // 設定 App 的分級

      上傳圖片:
      (1). App Icon: 512 x 512 pixel

      (2). iPhone and iPod touch Screenshots

      (3). iPad Screenshots


   6. 資料送出後:

--------------------------------------------------------------------------------
C. 修改 App 狀態:

   1. 回到  iTunes Connect > Manage Your Applications
      > 點選剛剛產生的 App 

     2. 目前 App 的狀態為: Prepare for Upload
        > 再點選: View Details

   3. 點選右上方的: Ready to Upload Binary

   4. 是否於 App 裡使用加密相關的功能: NO

   5. 接著出現使用 Application Loader 的說明:
If you have downloaded Xcode 3.2.5 or later, you should already have Application Loader stored here: /Developer/Applications/Utilities/Application Loader.app (or in your equivalent custom install location). If you do not find it, download and install the latest version of Xcode, which includes iOS SDK and Application Loader.

   6. App 的狀態已更新為 Waiting For Upload

--------------------------------------------------------------------------------

D. 利用 Xcode 上傳 App
   1. 將 Xcode 的 Scheme 設為: iOS Devide

   2. 執行: Menu > Product > Archive
   > 允許

   3. 按下 Submit 開始上傳.

   4. 成功上傳後, iTunes Connect 上的 App 狀態即更新為: Waiting For Review.
      說明: 等了很久都還沒上傳完畢, 因此改用以下 5. 之後的方式.

   5. Archive > Share...

   > 確認是 for AppStore

   > 輸出成 .ipa 檔

   6. 接著開啟: Application Loader
      /Developer/Applications/Utilities/Application Loader.app

   7. > Deliver Your App

   8. > Choose an application

   9. > 選取剛剛產生的 .ipa 檔

   > Send
 
   > 完成

  10. 最後, 便可在 iTunes Connect 上, 看到 App 狀態更新為: Waiting For Review.

--------------------------------------------------------------------------------

E. 其它
   1. 約 3 天後, 收到 Apple 的 email 通知 App 目前為 Review 狀態.

   2. 接著, 當天不久即更新成 Ready for Sale 的狀態.

   2. 將 Availability Date 設定成今天 2011/12/09, 看看多久會生效.

   3. 狀態更新成 Pending Contract (懸而未決的契約).

   4. 上架了, 最快的是在 latvian(拉脫維亞) 國家.

5. Promo(推銷) Code 的使用
   說明:
   (1). Promotional Codes
       > You are given 50 codes for each version of an application.
         They are for non-commercial use and will expire four weeks after they
         are requested.

   (2). 方法一. 直接開啓 iPhone 上的 App Store > Featured > New
        > 點選最下面的 Redeem.

   (3). 方法二. 開啓 iTunes, 滑鼠移到到右上角顯示登入帳號右方的向下三角形符號.
        > 點選  Redeem(買回) > 接著輸入 Promo Code 即可下載 App.



2011年12月4日 星期日

從 Xcode 產生給測試人員使用的 .ipa 檔案

since: 2011/12/04
update: 2011/12/04


前置作業參考:

1.
I touchs: Join iOS Developer Program
2. I touchs: 產生可於實體 iDevice 上運行的 App 之 (一) 取得憑證
3. I touchs: 產生可於實體 iDevice 上運行的 App 之 (二) 註冊設備
4. I touchs: 產生可於實體 iDevice 上運行的 App 之 (三) 新增 App ID
5. I touchs: 產生可於實體 iDevice 上運行的 App 之 (四) 新增 Provisioning Profile


-----------------------------------------------------------------------------------

A. 取得 iDevice 的 UDID
(Unique Device Identifier)

   1. 開啟 iTunes 並連結你的 iDevice (iPhone, iPod Touch or iPad). 
   2. 先點到所連結裝置的地方.
   3. 在: 摘要 > 序號 的地方, 點一下序號, 會切換成顯示: UDID
   4. 這時後, 只要在 iTunes 的 功能列 > 編輯 > 拷貝 即可 copy 到 UDID

-----------------------------------------------------------------------------------

B. 於 iOS Provisioning Portal, 註冊 Device ID

   Provisioning Portal > Devices > Add Devices 

-----------------------------------------------------------------------------------

C. 於 iOS Provisioning Portal, 設定 Distribution Provisioning Profile
    Provisioning Portal > Provisioning > Distribution > 勾選要供測試的 iDevice
    > 按下 Submit > 下載此 Provisioning Profile 並點二下安裝到 Xcode 裡

-----------------------------------------------------------------------------------

D. Xcode 的操作
   1. Xcode > Product > Archive
   > 允許

   2. 在自動跳出的 Archives 視窗中, 按下右方的 Share...

   3. 確認分享的方式(.ipa) 與 Identity 後, 按下 Next

   說明: Identity下拉式選單內容

   > 允許

   4. 存檔後, 即可看到產生的 .ipa 檔案


-----------------------------------------------------------------------------------

E. iTunes:
   接著將此 .ipa 檔案拖拉到 iTunes 的應用程式裡, 並對 iDevice 執行同步

   說明: 確認有被勾選作同步

   同步完成:

2011年12月1日 星期四

Lala's Program Note 實作記錄: 33. 幫 NoteBook 的 TableView 設定背景圖片


since: 2011/12/01
update: 2011/12/02

A. 修改 NoteBookViewController.h 如下:

//@add
- (void)setBackgroundImage:(UIImage *)image;

---------------------------------------------------------------------------------------------

B. 修改 NoteBookViewController.m 如下:


//@add
- (void)setBackgroundImage:(UIImage *)image {
    //UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0,0,320,480)];

    UIImageView *imageView = [[UIImageView alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
   
    imageView.backgroundColor = [UIColor colorWithPatternImage:image]; 
   
    //設定圖片的透明度 值為 0.0 ~ 1.0(圖片隱藏~完全不隱藏)
    [imageView setAlpha:0.32];
   
    [self.view addSubview:imageView];
    [self.view sendSubviewToBack:imageView];
    //[self.view insertSubview:imageView atIndex:0];
   
    [self.view setOpaque:NO];
    [self.view setBackgroundColor:[UIColor clearColor]];
    //set contentMode to scale aspect to fit
    imageView.contentMode = UIViewContentModeScaleAspectFit;

    [imageView release];
}


- (void)viewDidLoad
{
    [super viewDidLoad];
   
    //@add
    SEL segmentAction = @selector(segmentAction:);
   
    self.navigationItem.rightBarButtonItem = [self segmentBarItemMakeWithSelector:segmentAction btn1Name:@"Trash" btn2Name:@"Add"];

    //@add setBackgroundImage
    [self setBackgroundImage:[UIImage imageNamed:@"pipi_NoteBook.png"]];
    [self.view setNeedsDisplay];
}