Commit ccf95d1b authored by Gleb Pinigin's avatar Gleb Pinigin

Use view frame for empty Library view

parent 011c4bc9
......@@ -98,12 +98,14 @@
if (self.emptyLibraryView.superview)
[self.emptyLibraryView removeFromSuperview];
} else {
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
self.emptyLibraryView.frame = self.tableView.frame;
else
self.emptyLibraryView.frame = self.gridView.frame;
self.emptyLibraryView.frame = self.view.frame;
[self.view addSubview:self.emptyLibraryView];
}
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) {
_tableView.separatorStyle = (_foundMedia.count > 0)? UITableViewCellSeparatorStyleSingleLine:
UITableViewCellSeparatorStyleNone;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment