Creating inline cells in XIB?

I'm currently trying to create a table that displays the current downloads that the user is loading with a progress bar and details in each cell.

The im project using xib and xib does not seem to support inline partitions in table views

Table views with embedded sections and cells are only supported in storyboard documents

Can I use a Storyboard for a standalone UITableViewController? if so, how?

Is there also a way around this for what I'm trying to do? If so, what will be the workaround?

Thanks in advance for the last couple of hours.

self.rootController = [[UITabBarController alloc] init];
ViewController1 *view2 = [[ViewController1 alloc] init];
TableViewController *view3 = [[TableViewController alloc] init];

view3.tabBarItem.title = @"Documents";
appWebView = [[WebViewController alloc] init];
appWebView.title = @"Browser";
appWebView.tabBarItem.title = @"Browser";
view2.title = @"Downloads";
self.rootController.viewControllers = [NSArray arrayWithObjects:appWebView, view2, view3,  nil];
self.window.rootViewController = self.rootController;
appWebView.tabBarItem.image = [UIImage imageNamed:@"Browser.png"];
view2.tabBarItem.image = [UIImage imageNamed:@"Download.png"];


 _window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];

[_window setRootViewController:appWebView];
[_window makeKeyAndVisible];
[_window addSubview:_rootController.view];

^^ - AppDelegate, and below is the view I want to work with the storyboard

@interface TableViewController ()

@end

@implementation TableViewController



- (void)viewDidLoad
{
[super viewDidLoad];
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"TableViewController" bundle:nil];
TableViewController *sfvc = [storyboard instantiateViewControllerWithIdentifier:@"TableViewController"];
[sfvc setModalPresentationStyle:UIModalPresentationFullScreen];
[self presentViewController:sfvc animated:NO completion:nil];

}

- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
+4
source share
1 answer

Storyboard UITableViewController. ( firstView) ( ).

, ? , ? "tableView" tableViewDelegate xib "tableView" . .

0

Source: https://habr.com/ru/post/1545780/


All Articles