I'm using Xcode 8 and Swift 3 to develop an application for learning purpose. The app used UITableView to display a list of items. I had 20 items but only 12 of them were shown in the simulator. I tried to scroll down to the bottom but no more items. Note that I'm using Macbook Air 11'' mid 2013. I tried to scroll in the simulator using 2 fingers as I always did on browsers and other applications.
After that, I found that it was not the problem with my codes. Everything was fine. It's just the behavior of UITableView. It loads only some items to display which can fit the device's screen. It would show more if you use 3-finger scroll. 3-finger scroll in the simulator works the same as 1-finger tap on mobile device.
No comments:
Post a Comment