简体   繁体   中英

Empty cells in InAppSettingsKit settings window

I need to show settings screen within my app, so I use InAppSettingsKit to implement this. I use storyboards in my app, so I created a UITableViewController with IASKAppSettingsViewController super class. In this class I didn't implement any other special methods except settingsViewControllerDidEnd: . The problem is I need to hide empty cells in my table view (I have only two parameters in settings, so the whole remaining screen is full of empty cells). It means that the remaining part of the screen should be just empty, without empty cells, and with grey background (as in Settings.app). I can make UIView with empty frame as footer view of UITableView , but it's not the best solution - background color of footer remains to be white as in normal table view. What's the best way to limit number of cells?

我在Interface Builder中将UITableView的Style属性设置为Grouped,这解决了我的问题。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM