0

I wanna implement a PSMultiValueSpecifier in my App, so Users can change the Animation of iCarousel. I tried a lot now, but i can't figure out the right code (for my ViewController.m) ..

Maybe you can help me with that..

I wanna have something like that:

if(value 1 clicked) {
self.photoCarousel.type = iCarouselTypeRotary;
}
elseif(value 2 clicked){
self.photoCarousel.type = iCarouselTypeCylinder;
}

... and so on ( i have 6 values).

I really hope, you can give me the code, so i can implement it

My root.plist you can see here:

root.plist.png

4

1 回答 1

0

我使用以下代码加载默认值:

NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];
[userDefaults registerDefaults: [self initialDefaults]];

但我不知道,如何编写一个 if 查询来检查实际选择了哪个值,或者我的程序应该执行哪个操作。我希望你能理解我的问题,我的英语不是最好的,对不起。

这是我第一次使用 settings.bundle。

于 2013-03-31T01:53:27.410 回答