2009-12-17

用 Flash CS5 開發 iPhone 軟體教學


已經有教學影片了,而且這段影片還是直接切入平衡器(Accelerometer)的使用。
看來會有越來越多,很多有創意的朋友投入 iPhone 開發了!

Building iPhone Applications with Flash - Learn how to use Flash CS5 to compile your Flash applications into native iPhone app

Sneak Peak of Flash CS5 - Learn about all of the new features coming in Flash CS5 in addition to the iPhone workflow
網址:http://gotoandlearn.com/play?id=118

.

2009-12-11

免描述檔 App 安裝到 iPhone

這段內容是從 Pacess 的網站看到的,為了查詢方便,我將它節錄在這裡:

方法一:只適用於使用 Installous 安裝(需要 JB)
自從 Apple 把 Provisioning Profile 的期限改為三個月之後,久不久我便需要將 AppSales Mobile 的 Provisioning Profile 更新。於是我創作出解決方法,把 AppSales Mobile 變成自家製 IPA 檔案。方法如下:

1)建立 Payload 資料夾
2)把編譯好的 AppSales .app 拷到 Payload 內
3)把 Payload 壓縮成 ZIP 檔
4)把 Payload.zip 改名為 AppSales.ipa
5)把 AppSales.ipa 拷到 iPhone 裡的 /private/var/mobile/Library/Downloads
6)運行 Installous 安裝 AppSales.ipa

方法二:只需要用 iTunes 同步
01)建立 IPA 資料夾
02)在 IPA 資料夾內建立 Payload 資料夾
03)把編譯好的 .app 拷到 Payload 內
04)利用 BBEdit 打開 .app 資料夾內的 info.plist 檔
05)在 ((/dict)) 之前加入以下句子並儲存:
((key))SignerIdentity(/key))
((string))Apple iPhone OS Application Signing((/string))
06)把本來要上傳到 iTunes Connect 的 512x512 JPG 放到 IPA 資料夾
07)把 JPG 檔改名為 iTunesArtwork
08)把 Payload 及 iTunesArtwork 壓縮成 ZIP 檔
09)把 Payload.zip 改名為 Cracked.ipa
10)把 Cracked.ipa 拖拉到 iTunes 的 Applications 內
11)同步!

參考:http://pacess.blogspot.com/

ps.把「((」換成「小於符號」,「))」換成「大於符號」

.

2009-11-07

Xcode 常用技巧與按鍵

每個文字編輯軟體都有一些內定的技巧與按鍵,讓我們在編寫程式碼的時候很方便又有效率,列出來參考:

原文出處
http://iphonedevelopertips.com/xcode/xcode-tips-and-tricks-tips-1-to-10.html

Tip #1 – Split Editor View Vertically
If you like to have multiple code windows open at once, the Split Editor option is your friend (see the little square grid icon shown below).

By default, the windows are split horizontally. If you prefer to view your code side-by-side (nice for comparing), here’s how to tell the split to be vertical
Hold down Option key when clicking the Split Window icon

Tip #2 – Comment Out a Block of Code
You can quickly comment out a block of code as follows:
Select one or more lines of code to comment
Command-/
To uncomment a block of code, repeat the steps above.

Tip #3 – Toggle Between .h and .m Files (aka Switch to Counterpart)
Within your current code window, you can swap between the .h and .m file as follows:
Command-Option Up-Arrow

Tip #4 – Map Keys to Actions (Key Bindings)
The Switch to Counterpart tip above is a real time saver. However, I often find that if I map logical key-strokes to actions I’m much more likely to get into the habit of using them. For example, I mapped the Switch to Counterpart to Option-S, as in Swap or Switch.
Here’s how to set key bindings in Xcode
From the Xcode menu choose Prefereces
Select Key Bindings
Click on one of the Actions in the list
Tap on the Keys column on the right
Enter the keystroke you want to map to the action
Click Ok to save your changes

Tip #5 – Jump to API Documentation
Showing relevant API documentation for anything within the SDK(s) is as simple as:
Option Double-Click on relevant code
For example, in the screenshot below, after Option double-clicking on UIToolbar, a popup window shows a summary of the class information.

Tip #6 – Traverse File History
As you open and edit various files, Xcode keeps a history list of your actions, not unlike when using a web-browser. You can move through the list using the directional arrows as shown below:

The keystoke equivalent for the above is:
Option-Command Left-Arrow goto to previous file
Option-Command Right-Arrow goto to next file

Tip #7 – Set a Bookmark
I can’t imagine coding without having the option to set a bookmark as a placeholder for what I’m working on. I do this regularly when I need to segue to another file to find a snippet or otherwise poke around outside the current file I’m working on.
Setting a bookmark is as simple as:
Control-D
Enter a name for the bookmark

Tip #8 – Jump to Bookmark
There are two options to jump to a bookmark. First, you can select the bookmark icon in the upper right corner of the Editor window.

You can bring up the same menu as shown in the above figure using this keystoke:
Control-4

Tip #9 – Indent / Un-indent Code
You can indent a line of code or a selected block of code as follows:
Command-[ move code left
Command-] move code right
The above works regardless of where you are in a line of code, in other words, you don’t have to be at the beginning of the line.

Tip #10 – Zoom Editor
You can toggle between Detail view and Editor view by clicking the Editor button as shown here:

The keystroke equivalent of the above is:
Shift-Command-E


2009-10-21

為何 Android 很難成功?

有朋友看到 HTC Hero 之後,很高興地說要去買一支來用,我都力勸不要浪費那些錢,寧可多存一點錢追加買 iPhone。我說,可以等,等看看,最後 Android OS 還是會一團亂!

轉貼幾則徵候,分析很清楚:

Android即將可能面臨的分裂問題

Google要自己做手機?軟體還一堆事該做咧.....

.

2009-10-08

用 Flash 開發 iPhone 軟體

在 Adobe Labs 的網站有提到 Flash CS5,將於 2009 年底以前上市。可想而知的是,Flash CS5 上市之後就會有很多小遊戲出現在 AppStore,而且會越來越多,最讓大家期待的「可不可以在 Windows 開發 iPhone 軟體」將會實現。

根據 Adobe 的資深產品經理 Aditya Bansod 提到,Flash CS5 編譯成的軟體,是可以在 iPhone armv6 CPU 執行的 native 原生軟體,而且還可以使用 SQLite。至於進一步有關描述檔(provisioning profiles)的取得,也可以看 FAQ

以目前狀況來看,要把軟體上架到 AppStore,只有用 Objective-C,雖然不難,但或許對一部份的人會有障礙;而對手呢?在這個月上線的 Microsoft Marketplace,也要用 c# 來開發,也是有一點門檻。

Microsoft Marketplace 雖然比較晚上來,雖然使用 Windows 的人口很多,但對於軟體市集能不能成功還很難講,因為這個架構不是一年兩年可以學得來。

Apple 也會防止 Microsoft Marketplace 的壯大,為何 Xcode 不要發行 Windows 版本?或許是 Apple 要藉 Adobe Flash 擁有廣大開發人口加入 iPhone 軟體的開發,乘勝追擊,讓開發人員直接寫軟體送進 AppStore,這樣一來,對於 Microsoft Marketplace 投入的人就不會那麼多了。

Flash 是一套很視覺化的物件設計環境,如果可以拿來開發 iPhone 原生軟體,真的很讓人期待!

是不是這樣?我們再拭目以待!


*** 2011.4.24
很久沒有注意這方面的消息,有朋友留言給我,於是我再到 Adobe 的網站看看目前狀況。
有興趣的朋友可以到這裡 Packager for iPhone 保持注意。
.