Welcome to the iMore Forums Create Your Account or Ask a Question Answers in 5 minutes - no registration required!
Results 1 to 6 of 6
  1. Thread AuthorThread Author   #1  
    skipday's Avatar
    iPhone Nanite

    3 Posts

    Default Need iphone apps Development Help

    Hi All,

    I was searching a solution for a UITextField in row under UITableView.

    Here is what I want to do. UITextField field should be scroll to top when user clicks on it.

    I search Google for the issue and did not find any solution.

    Can somebody help me how can I implement scrolling event when particular row is selected?

    Thank you in advanced.
  2. #2  
    starwarrior's Avatar
    iPhone Newbie

    9 Posts
    Global Posts
    10 Global Posts

    Default Should invest in this

    A lot to discuss when creating an app. The best suggestion I have is the get the entire picture from front to back and nothing left out on how to. Should visit This site click here. I'm new to iphone and have no programming experience and this system helped me out a bunch
  3. #3  
    baharharre's Avatar
    iPhone Beginner

    85 Posts
    Global Posts
    86 Global Posts

    Thumbs up RE : iphone apps Development Help

    There is no direct event or class for this action. You need to add some custom code as per below guideline.

    1) First of all set tag of UITextField as indexpath.row.
    2) In UITableView delegate enable or add method "- (BOOL)textFieldShouldBeginEditing: (UITextField *)textField"
    3) Pass tag value of UITextField to below method.
    4) - (void) setRowOnTop: (NSNumber*)numRow{
    NSInteger iRow = [numRow intValue];
    CGRect rowFrame = [tiTableView rectForSection:0];
    NSIndexPath *indexPath = [[tiTableView indexPathsForRowsInRect:rowFrame] objectAtIndex:iRow];
    [tiTableView scrollToRowAtIndexPath:indexPath atScrollPosition:UITableViewScrollPositionTop animated:YES];
    Last edited by baharharre; 04-21-2011 at 07:38 AM.
  4. #4  
    bartekhugo's Avatar
    iPhone Newbie

    13 Posts


    check also ELCTextFieldCell on icodeblog
    if i remeber correctly there were also some in thre20 framework
  5. Thread AuthorThread Author   #5  
    skipday's Avatar
    iPhone Nanite

    3 Posts

    Default Thanks,,

    Thanks all for reply...
  6. #6  
    twild's Avatar
    iPhone Newbie

    41 Posts


    Also, might want to check out iPhone Dev SDK

    Lots of help there.

Tags for this Thread

Posting Permissions