Is there a library or structure for setting preferences from the iPhone app?

Using Settings.app on the iPhone is not that difficult. Xcode actually does most of the work for you. Just add Settings.bundle to your project and you will get it almost for free.

I am currently developing an application for the iPhone that requires the user to fill out several “forms”, mainly a couple of key values, some sliders and some modal presentations with drop-down menus. A similar task is similar to what Settings.app does.

Doing forms in itself is a difficult task, so I wonder if there is a framework for such tasks. Unfortunately, Apple doesn't seem to provide its own solution. Perhaps someone knows a structure or article on the Internet that describes best practices.

If you do not understand which template I am referring to, I took a screenshot: http://img.skitch.com/20090625-s8bf6ahybwe3cesd1id38h3nt.jpg

+5
source share
5 answers

Check out http://www.inappsettingskit.com . It was used in several applications, and it was actively supported (itself and a bunch of others).

+8
source

. github: mySettings

+3

, , , Apple , . 3.0 UITableViewCellStyles, , , - .

+2

, , Settings.bundle.

, , , , .

, - , , .

UITableViewController

, , , :

        cell.textLabel.text = @"Last name:";
        UIFont *labelFont = [UIFont systemFontOfSize:[UIFont labelFontSize]];
        CGSize textSize = [cell.textLabel.text sizeWithFont:labelFont];
        baseRect.origin.x = textSize.width+15;
        baseRect.origin.y +=7;
        baseRect.size.width = baseRect.size.width - textSize.width - 15;
        baseRect.size.height = 23;
        UITextField *textField = [[UITextField alloc] initWithFrame:baseRect];
        textField.keyboardType = UIKeyboardTypeAlphabet;
        textField.returnKeyType = UIReturnKeyDone;
        textField.clearButtonMode = UITextFieldViewModeWhileEditing;
        textField.delegate = self;
        textField.placeholder = @"last name";
        [textField addTarget:self action:@selector(lastNameChanged:) forControlEvents:UIControlEventAllEditingEvents];
        textField.tag = 182;
        [cell.contentView addSubview:textField];    
        [textField release];

, , - TextField, .

+1

, , , settings.bundle, , .

I don’t know anything like it yet, but I really could use it, and I thought about writing it.

0
source

All Articles