I have a strange problem with my application. After I read all the questions about almost the same problem, I still could not find something to solve my problem. I am using UITableViewController to display KoreanFood details. The first cell is a custom UITableViewCell (OverviewCell) with an image and two UITextFields that I created and placed in the Storyboard (AutoLayout). Looks like this
https://dl.dropboxusercontent.com/u/28177144/Screen%20Shot%202013-05-29%20at%2023.39.46.png (sorry, I can’t insert a picture, but I don’t have a reputation yet 10)
I have subclassed UITableviewCell as follows:
OverviewCell.h @interface OverviewCell : UITableViewCell @property (strong, nonatomic) IBOutlet UITextField *englishTitleTF; @property (strong, nonatomic) IBOutlet UITextField *koreanTitleTF; @property (strong, nonatomic) IBOutlet UIImageView *myImageView; @property (strong, nonatomic) UIImage *thumbnail;
My text fields on the Storyboard are set to enable / UserInteractionenabled, and the delegate is my TVC. When I create cells, I also do this in code:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { if (indexPath.section == GENERAL_SECTION) { static NSString *overviewCellID = @"overviewCell"; OverviewCell *overviewCell = [tableView dequeueReusableCellWithIdentifier:overviewCellID forIndexPath:indexPath]; overviewCell.englishTitleTF.text = self.generalInfo.titleEnglish; overviewCell.koreanTitleTF.text = self.generalInfo.titleKorean; overviewCell.englishTitleTF.enabled = YES; overviewCell.koreanTitleTF.enabled = NO;
The comment is with BOOL NO, and I just don’t know why ... When I set the text and displayed it correctly, I know that the Outlets are installed and Cell is not zero (I checked this), Why is this not the first responder? I also tried some suggestions in the OverviewCell subclass, for example, a success test or the implementation of the setSelected: / setEditing: methods. But startFirstResponder for textField doesn't change anything here either.
ANY HELP would be greatly appreciated, I desperately ask for it.