Adding subviews to UITableViewCell issue?

You may want to try something like this in the didSelectRow method: if (indexPath. Row == dataArray count) { tableView scrollToRowAtIndexPath:NSIndexPath indexPathForRow:indexPath. Row inSection:0 atScrollPosition:UITableViewScrollPositionBottom animated:YES; } I've also used the following for making the last row visible (though from your video I do not think this will work for your situation) guessesTableView scrollRectToVisible:CGRectMake(0, 0, 1, 1) animated:NO.

Yeah, you want it to auto-scroll to bring the selected row fully into view. The above code looks about right. – Daniel R cks May 28 at 2:54 that's actually my solution, wonder if there's other way than that – adit May 28 at 4:32 and it should be dataArray count-1, the row are 0 indexed – adit May 28 at 4:41 About the only other thing you can do is adjust the above algorithm so that any row touched (or at least one below the bottom 1/3rd or so) is raised to about the 1/3rd from the bottom point.

This may be a bit more "intuitive"/less "jolting" (though you have to be the judge). Similar techniques are used when touching something produces a keyboard popup. – Daniel R .

The issue is that when I tap the last row in the table, it hides the subviews and having me to scroll to the bottom to see it. It's a small bug, but what is the best way to remedy this issue. One way I can think of is to scroll down to the bottom of the row if the last row is selected.

This doesn't seem to be a very good solution though.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions