From 8a0e351f2fad2004df7e6d28f976a0820fe005c5 Mon Sep 17 00:00:00 2001 From: Kirill Zhdanovich Date: Sat, 30 Mar 2013 17:17:09 +0300 Subject: [PATCH] [iOS] Cell style fix in AddSet Controller --- iphone/Maps/Bookmarks/AddSetVC.mm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/iphone/Maps/Bookmarks/AddSetVC.mm b/iphone/Maps/Bookmarks/AddSetVC.mm index 72ccd8e18f..aa5015e36b 100644 --- a/iphone/Maps/Bookmarks/AddSetVC.mm +++ b/iphone/Maps/Bookmarks/AddSetVC.mm @@ -50,7 +50,7 @@ - (void)viewDidAppear:(BOOL)animated { // Set focus to editor - UITextField * textField = (UITextField *)[self.tableView cellForRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0]].accessoryView; + UITextField * textField = (UITextField *)[[self.tableView cellForRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0]] viewWithTag:TEXT_FIELD_TAG]; [textField becomeFirstResponder]; [super viewDidAppear:animated]; @@ -76,7 +76,7 @@ UITableViewCell * cell = [tableView dequeueReusableCellWithIdentifier:@"EditSetNameCell"]; if (!cell) { - cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"EditSetNameCell"] autorelease]; + cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:@"EditSetNameCell"] autorelease]; cell.textLabel.text = @"Temporary Name"; [cell layoutSubviews]; CGRect rect = cell.textLabel.frame; @@ -95,7 +95,6 @@ f.font = [cell.textLabel.font fontWithSize:[cell.textLabel.font pointSize]]; f.tag = TEXT_FIELD_TAG; [cell.contentView addSubview:f]; - [f becomeFirstResponder]; [f release]; cell.selectionStyle = UITableViewCellSelectionStyleNone; cell.textLabel.text = @"";