Wednesday, 15 August 2012

ios - How to make a preference bundle for my mobile substrate tweak? -



ios - How to make a preference bundle for my mobile substrate tweak? -

i have theos, sdk3 installed in iphone

i have created working tweak have no thought how create preference bundle add together settings.

i want yes/no or bool button added preference button see if tweak wants enabled or not

how create tweak read if enabled or not? exmaple:

-(void)something { if (enable = yes) { /*method here*/ } else { //do nil } }

please help

try check link http://blog.aehmlo.com/2012/08/03/new-tweak-readme/ aehmlo lxaitn explains in details how create simple tweak , add together settings enable/disable it.

it works me. hope it's need.

you may want install "theos tutorials" cydia. it's author reverseeffect.

anothe tutorial http://shahiddev.blogspot.com/2011/11/mobilesubstrate-tweak-tutorial-with.html

go "settings"

if user disable our tweak? can give him ability enable or disable preference bundle. (we utilize plist simple this, we’ll utilize preference bundle project in order seek out). i’m going skip few steps this, since can figure them out yourself, looking @ source code can download below. - launch new instance creator, , initiate “preferencebundle” project. - add together project “subproject” in main tweak project, adding subprojects = tutorialsettings key in makefile. - construction of preference bundle given plist containing collection os psspecifiers, used standard preferences app. - create switch controlling “enabled” key. - “defaults” key set bundle id used before (com.filippobiga.tutorial). means it’ll write plist name in preferences folder of user. - need modify code in tweak.xm read user’s settings , determine if should flash screen or not. that’s it!

ios settings tweak theos cydia-substrate

No comments:

Post a Comment