2012年6月28日 星期四

情歌永流傳的iTunes Store音樂上架

iTunes Store的音樂遍布全世界,如果彼得潘十七八歲時為初戀女友創作的情歌能夠在當中亮相,永遠的流傳,也是滿浪漫的。然而認真說來,上架音樂的條件其實比App艱難許多,以下為彼得潘苦讀Apple英文文件後,整理出的音樂上架相關條件:



申請網頁:
https://itunesconnect.apple.com/WebObjects/iTunesConnect.woa/wa/apply

帳號資格:
(1) 綁有信用卡的Apple ID,此ID不能為販賣App的開發者帳號,也不能是販賣電子書的iBookStore帳號。
(2) U.S.Tax ID
取得程序可參考以下網頁
http://www.irs.gov/businesses/small/article/0,,id=97860,00.html

音樂需求:
(1) 至少20張專輯
(2) 每張專輯需要有獨一無二的UPC識別
(3) 每首歌需要有識別的ISRC

接下來的幾個月,彼得潘也許有機會親自實驗音樂的上架,未來有機會再將這段有趣的故事和大家分享。


2012年6月25日 星期一

WWDC 2012值得一看的Session Video


App的誕生,是段漫長又艱辛的旅程,就讓Apple的專家給我們些金玉良言吧!
Basics+Habits: Building Your Software Projects To Last

開發工具的使用
Developer Tools Kickoff
  Working Efficiently with Xcode
Working with Schemes and Projects in Xcode
Building from the Command Line with Xcode
Source Control Management in Xcode
Learning Instruments

Collection View介紹
Introducing Collection Views
  Advanced Collection Views and Building Custom Layouts
   
Passbook介紹
    Introducing Passbook, Part 1
    Introducing Passbook, Part 2
   
成為Social達人  
    Integrating With Facebook, Twitter and Sina Weibo
   
Newsstand App介紹
    Building Great Newsstand Apps
   
Debug技巧
Debugging in Xcode
Debugging with LLDB

Auto Layout介紹
Introduction to Auto Layout for iOS and OS X
Best Practices for Mastering Auto Layout
Auto Layout by Example

Scroll View運用
Enhancing User Experience with Scroll Views

In-App Purchase
Selling Products with Store Kit
Managing Subscriptions with In-App Purchase

view controller
The Evolution of View Controllers on iOS

UI
Polishing Your Interface Rotations
Advanced Appearance Customization on iOS
iOS User Interface Design

Special
Up and Running: Making a Great Impression with Every Launch
Saving and Restoring Application State on iOS


Performance
iOS App Performance: Memory
iOS App Performance: Responsiveness
iOS App Performance: Graphics and Animations
Building Concurrent User Interfaces on iOS
Asynchronous Design Patterns with Blocks, GCD, and XPC

Network
Networking Best Practices

Core Data
Core Data Best Practices

iCloud
iCloud Storage Overview
Using iCloud with Core Data
Using iCloud with UIDocument
Advanced iCloud Document Storage

LBS
   Getting Around Using Map Kit
   Staying on Track with Location Services

Objective-C
Migrating to Modern Objective-C
Modern Objective-C

Core Image
Getting Started with Core Image
Core Image Techniques

手指連心的手勢感應
Building Advanced Gesture Recognizers

Event Kit
Events and Reminders in Event Kit

國際化的技巧
Internationalization Tips and Tricks

Game Center
Game Technologies Kickoff
Integrating Your Games with Game Center
Multiplayer Gaming with Game Center

Core Motion
Understanding Core Motion

Security and Privacy
Protecting the User's Data
Privacy Support in iOS and OS X
The Security Framework

B2B
Building and Distributing Custom B2B Apps for iOS

繪製個性化的字串
Introduction to Attributed Strings for iOS
Advanced Attributed Strings for iOS

Accessory
iOS Accessories

New
What's New in iTunes Connect for App Developers
What's New in Cocoa Touch
What's New in LLVM
What's New in Game Center
What's New in HTTP Live Streaming


2012年6月15日 星期五

Xcode的快速注解 - 移除情詩三百首多出的最好不相見

將程式碼裡暫時用不到的程式碼注解起來是每個程式設計師都會遇到的麻煩事。Xcode是如此地貼心,連此等小事都幫我們設想好了。從今而後,就算是1000行的程式區塊需要注解,也不過是片刻之間即能完成的小事。

原先彼得潘將六世達賴喇嘛的十誡詩存成字串,準備在情詩三百首App裡介紹。


然而人算不如天算,想不到最後彼得潘收集了301首情詩,經過反覆思量後,只好將此首十誡詩暫時移除。我們不用一行行地打上 // ,只要經過以下2個步驟,即可輕易將整首詩注解起來。

(1)  將整首詩點選起來


(2) 按下 command + /



若是一時心軟,決定將App改名為情詩301,此時只要再一次操作剛剛介紹的2個步驟,即可將 每一行開頭的 // 移除。