You can do the following:
UITableView *myTable = [[UITableView alloc] initWithFrame:CGRectZero style:UITableViewStyleGrouped];
Swift 3:
let tableView = UITableView.init(frame: CGRect.zero, style: .grouped)
More Related Contents:
- Async image loading from url inside a UITableView cell – image changes to wrong image while scrolling
- How to customize the background/border colors of a grouped table view cell?
- Having a UITextField in a UITableViewCell
- Hide separator line on one UITableViewCell
- How to scroll to the bottom of a UITableView on the iPhone before the view appears
- Setting scroll position in UITableView
- Label doesn’t show text
- Cropping an UIImage
- How to easily resize/optimize an image size with iOS?
- Programmatically retrieve memory usage on iPhone
- Eliminate extra separators below UITableView
- Measuring cellular signal strength
- Creating a UICollectionView programmatically
- How do I change the title of the “back” button on a Navigation Bar
- How to load local html file into UIWebView
- How to put buttons over UITableView which won’t scroll with table in iOS
- How do I get the day of the week with Foundation?
- can’t get correct value of keyboard height in iOS8
- iOS 7 TableView like in Settings App on iPad
- Understanding NSRunLoop
- Objective C NSString* property retain count oddity
- How can I click a button behind a transparent UIView?
- Failed to obtain a cell from its DataSource
- Wait until multiple networking requests have all executed – including their completion blocks
- PresentViewController from custom TableCell in xib
- Tutorial on How to drag and drop item from UITableView to UITableView [closed]
- table header view height is wrong when using auto layout, IB, and font sizes
- Correct way to setting a tag to all cells in TableView
- Find UIAlertView without having reference to it iOS 7
- Horizontal UIScrollView inside custom UITableViewCell – using IB Storyboard – Not scrolling