I check the version each time I start the app. If it's different,
assume it's new and upgrade.

NSBundle.MainBundle.ObjectForInfoDictionary("CFBundleVersion").ToString()

Should return 1.0 if thats what you have in your app bundle (ie, what
the appstore says)

On Mon, Apr 30, 2012 at 10:32, diviner <[email protected]> wrote:
> Hi all,
>
> I want to modify the existing database while upgrade my apps. How to make it
> just run once on upgrading?
>
> Thank you very much.
>
> Best regards,
> Diviner.
>
> --
> View this message in context: 
> http://monotouch.2284126.n4.nabble.com/How-to-run-a-method-just-on-upgrading-tp4597753.html
> Sent from the MonoTouch mailing list archive at Nabble.com.
> _______________________________________________
> MonoTouch mailing list
> [email protected]
> http://lists.ximian.com/mailman/listinfo/monotouch



-- 
Nic Wise
t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/

Earnest: Self-employed? Track your business expenses and income.
http://earnestapp.com
Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p
mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to