iphone table view scrolls to bottom when launch
I am following Chapter 5 in O'Reilly Learning iPhone Programming.
When I launch the app in Xcode, the list will scroll straight away to the bottom. When I try to drag the tableview upwards, it will go back to the last row when I release my mouse.
Unfortunately I am unable to post the codes since it has many sections.
Anyone has a clue what code might have caused this problem?开发者_运维问答
It is likely that the UITableView is actually extending off the visible screen. Use the debugger to check at runtime the frame of the table view. It is not scrolling because it thinks the content is fitting. Without seeing the code though, this is just an educated guess.
I grabbed the sample code for Chapter 5 from here: http://www.learningiphoneprogramming.com/pages/samplecode.html and I'm unable to duplicate your problem. Are you sure you didn't change any of the code? What is your Base SDK?
精彩评论