For Android, set the Remote Path to assets\internal
For iOS, set the Remote Path to StartUp\Documents
// XE3 : DBJSON
// Seattle: System.JSON
var
LJsonArr : TJSONArray;
LJsonValue : TJSONValue;
LItem : TJSONValue;
begin
memo1.Lines.Clear;
LJsonArr := TJSONObject.ParseJSONValue(TEncoding.utf8.GetBytes(memo2.Lines.Text),0) as TJSONArray;
for LJsonValue in LJsonArr do
begin
for LItem in TJSONArray(LJsonValue) do
memo1.lines.add(Format('%s : %s',[TJSONPair(LItem).JsonString.Value, TJSONPair(LItem).JsonValue.Value]));
memo1.Lines.Add('');
end;
end;
Sam Lu先前寫了一篇100 Days of Swift的文章,不過比較可惜的是並沒有開放原始碼出來讓大家一起學習。不過有位Allen Wong網友,效法Sam Lu做了30 Days Of Swift的計畫,更難能可貴的是他老兄開放了所有原始碼給大家參考。對有興趣自學Swift語言的朋友是很好的學習教材。