[英]how to set 'div' element full of screen(width), when iphone change directions, it is also full screen(width)
[英]How to set a flag on the Iphone screen, So that it can be back on this screen when click?
我在iphone中有一個項目,其中有許多UIViewController
。 我想設置一個標志或其他內容來返回該UIViewController
。
我怎樣才能做到這一點?
我發現是使用以下方式為tableDataSource重新加載數據:
-(void)reloadData:(NSArray *)data andCurrentLevel:(NSInteger) alevel{
RootViewController *root =[[self.navigationController viewControllers] objectAtIndex:0];
// RootViewController *root = [[RootViewController alloc]init];
root.tableDataSource = data;
[root.tableView reloadData];
root.CurrentLevel = alevel;
}
在我的按鈕發送短信。 我添加了以下幾行:
NSArray *data = newDataSource;
[self reloadData:data andCurrentLevel:newCurrentLevel];
[self.navigationController popToRootViewControllerAnimated:YES];
它可以回到我想要的屏幕。 但是我的導航欄按鈕有問題
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.