auto destroy on MobGui native iOS controls

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Locked
Coffee1633
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 219
Joined: Mon Dec 05, 2011 5:35 pm
Location: Kanagawa, Japan

auto destroy on MobGui native iOS controls

Post by Coffee1633 » Mon Sep 02, 2013 1:52 pm

Many if not all the MobGui native iOS controls have an auto destroy checkbox.

Is it best practice to turn this on?
It is a little confusing, why do you need to destroy the control when leaving the card? and if we set it to auto destroy will another get automatically created when we come back to the card? When does it get destroyed?

anyone have any basic information about how MobGui handles creating and destroying native iOS controls?

Coffee16

cavenewt
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 66
Joined: Fri Mar 15, 2013 3:54 pm
Location: Jackson Hole, Wyoming, USA

Re: auto destroy on MobGui native iOS controls

Post by cavenewt » Tue Sep 03, 2013 4:05 am

Well, I found this bit of information:
The 'Auto destroy on closeCard' option was added in case the app needs to free up resources used by the [control] when the card it was created on is closed. The default action is to hide the [control], meaning it can be used again by simply showing it.

Locked

Return to “Summer School 2013”