[open source] iPhone , UIImage and PhotosAlbum 上傳一個圖到 simulator 的相簿 PhotosAlbum sample code

有時候想寫一個從相簿挑選照片的程式, 但 xcode 的 simulator 並不支援照相功能 ,

那個 simulator 相簿總是空空的 , 無法從那邊挑選照片, 於是寫了這個小程式 ,

program 功能是從一個 圖片網址 把那張圖抓下來並且存進 simulator 的相簿中, 這個 code 有實作存成功跟存失敗時的 method.

今天並且練習把這個 open source code hosting 在 google code , 可以 download 下來參考.

URL = https://code.google.com/p/monster-oasis-opensource-iphone/downloads/list

google code 也提供 svn checkout 機制 , 怎麼 check out

參考 URL = https://code.google.com/p/monster-oasis-opensource-iphone/source/checkout

不過發現 google code 雖然提供熟悉的 svn 機制 , 但是有兩大缺點:

  1. project 必須為 open source , public 的
  2. 介面很麻煩

不如, 來看一下 git 怎麼用: https://github.com/plans

以下是 這個 code 的截圖:

parsing HTML on the iPhone

[上午 10:17:04] _RTN 神奇傑克:  object-c的html parser 這裡有解答 http://stackoverflow.com/questions/405749/parsing-html-on-the-iphone

libxml2.2 comes in the SDK, and libxml/HTMLparser.h claims the following:

    This module implements an HTML 4.0 non-verifying parser with API compatible with the XML parser ones. It should be able to parse "real world" HTML, even if severely broken from a specification point of view.