Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Put post filters back into the settings screen.

  • Loading branch information...
commit d6d7d926b5fb3089e8c939503f27aaf466e11af4 1 parent 8416f7a
@Squeegy authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 Classes/SettingsViewController.m
View
8 Classes/SettingsViewController.m
@@ -25,7 +25,6 @@ - (id)initWithNib {
passwordField.placeholder = @"Enter Password";
passwordField.secureTextEntry = YES;
passwordField.returnKeyType = UIReturnKeyDone;
- //usernameField.keyboardType = UIKeyboardTypeEmailAddress;
serverField = [[self generateTextFieldWithKey:@"server"] retain];
serverField.placeholder = @"shackapi.stonedonkey.com";
@@ -69,6 +68,7 @@ - (NSDictionary *)stateDictionary {
- (UITextField *)generateTextFieldWithKey:(NSString *)key {
UITextField *textField = [[UITextField alloc] initWithFrame:CGRectMake(0, 0, 170, 20)];
+ textField.autoresizingMask = UIViewAutoresizingFlexibleWidth;
textField.returnKeyType = UIReturnKeyNext;
textField.autocapitalizationType = UITextAutocapitalizationTypeNone;
textField.autocorrectionType = UITextAutocorrectionTypeNo;
@@ -151,7 +151,7 @@ - (BOOL)textFieldShouldClear:(UITextField *)textField {
#pragma mark Table View Delegate Methods
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
- return 3;
+ return 4;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
@@ -180,7 +180,7 @@ - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger
- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section {
switch (section) {
case 0:
- return @"Connection";
+ return @"Shacknews.com Account";
break;
case 1:
@@ -220,7 +220,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
case 2:
cell.accessoryView = serverField;
- cell.textLabel.text = @"Server URL:";
+ cell.textLabel.text = @"API Server:";
break;
}
Please sign in to comment.
Something went wrong with that request. Please try again.