我想在我的应用程序中进行水平分页,我发现我可以使用UIPageViewController
,但它仅适用于情节提要。
我可以使用旧的 *.xibs,但在转换故事板(如果设备有 ios5)或 xib(如果设备有旧固件)之后使用写命令?如果是,如何?我想在这里实现:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
[tableView deselectRowAtIndexPath:indexPath animated:YES];
if (purchased == 1 && [indexPath row] == 1) {
} else if (iOSversion > 5) {
//Use storyboard
} else{
DetailsViewController *detailViewController = [[DetailsViewController alloc] initWithNibName:@"DetailsViewController" bundle:nil];
detailViewController.item = [rssItems objectAtIndex:floor(indexPath.row)];
[self.navigationController pushViewController:detailViewController animated:YES];
[detailViewController release];
}
}