發表文章

目前顯示的是有「coredata」標籤的文章

Caffeine+ Boost Your Productivity

圖片
Most people wouldn't doubt that coffee shop is one of the best places to work, since it seems to have certain magic power to make people being highly productive. But, do we must go into the coffee shop in order to enjoy the cozy atmosphere? The answer now is "NO"!! The app called "Caffeine" could able to give you a portable coffee shop anytime and anywhere you like. You could have all of the coffee shop buzz you want without trying hard to fight for a seat in the real shop, or spend much money to buy latte one after another. "Caffeine", an awsome app which re-create the coffee shop atmosphere for you by serving you many coffee shop buzz easily. You can mix one unique coffee shop buzz along with your own beloved music together to play at a time. Oh, and don't forget to help yourself to make a cup of coffee before you start to stick to this app!! Now, with "Caffeine", who will say that we must go to the real coffee shop to enj...

GPS Wake Me Up

圖片
前陣子聽到有朋友在國外旅行的時候,因為搭車搭過站,導致接下來的行程整個都受到影響,這讓我想到當我們到人生地不熟的地方,加上不熟悉當地的語言,如果沒有注意站點很容易發生這種狀況。或是當下班的時候後累,想說在車上小睡一下,就會發生不小心睡過站的問題。因這幾點讓我想到以前曾經與朋友合作開發過的App,現再重新改裝調整,重新上架。 而這個App審查的過程也是遇到一些狀況,現有用到背景運行的功能,都要加註標語,之前在做的時候都沒有注意到這件。所以讓這個app上架又晚了幾天。不過後來還,只要把文案調整後,就可以了。 以下是介紹。 你是否曾經搭公車或是捷運有過站的經驗嗎?或是當下班後太累不小心睡著,公車又坐錯過站了呢? 這個App就是為您而設計,簡單的設定好目的地後,按下追踨後可以放心好好休息,當快到站的時候,它就會提醒你。 點我下載GPS Wake Me Up 請注意: 1.當使用此應用程式時,務必"開啟鈴聲模式"!!! 2.如長時間在背景模式使用GPS會大量消耗電池可用時間。本程式經啟用後即使於背景中也會保持GPS開啟狀態,不使用時請關閉GPS以節省電力。 3.必須使用具有GPS功能的設備,例如iPhone 3GS、iphone 4、iPhone 4s、iPhone 5、iPad 3G。此應用程式不建議使用在iPod Touch、非3G版的iPad。 4.使用前需同時開啟智慧型行動電話GPS定位服務及3G上網功能,以便app取得您所在的位置。在訊號較差的環境下可能會影響到定位的準確度。

CoreData 筆記 (2)

當開發Mac App並使用Coredata的話,要對某一筆資料做更新,可以使用下列的方法。 事先在xib檔中把arraycontroller建立一個iboutlet的連線到h檔中,這時候我們就可以直接 使用arraycontroller中的資料了。 - (IBAction)RestLearnRecord:(id)sender {// 重置資料          //將arraycontroller的陣列取出     NSMutableArray *ctarray = [CategoryArray arrangedObjects];     //選取某一個索引上的物件,並給於對應的型態  Category *inData = [ctarray objectAtIndex:SelectIndexs];     //直接對此物件做操作     [inData setRemember:[NSNumber numberWithInt:100]];     [inData setTotally:[NSNumber numberWithInt:900]];         NSError *error = nil;       //修改完資料後,要執行存檔的動作,這時候畫面上的資料就會被更新了     if (![[self managedObjectContext] save:&error]) { //此行一定要執行         NSLog(@"Failed to save - error: %@", [error localizedDescription]);     }else {         [tableViewMenu reloadData];     }    ...