【发布时间】:2014-06-10 05:10:08
【问题描述】:
当我从 View Controller A 转到 View Controller B 时,如何在 segue 发生之前加载我的 UIAlertView? UIAlertView 似乎只是在下一个屏幕中加载......
我尝试在
中实现 UIAlertView- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
部分,但我无法得到结果。
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
if ([[segue identifier] isEqualToString:@"report"])
{
[self loadingData];
}{
[self retrieveData];
NSIndexPath *indexPath = [self.myTableView indexPathForSelectedRow];
Company *currentStore = [arrayOfStore objectAtIndex:indexPath.row];
ReportsViewController *destinationVC = [segue destinationViewController];
destinationVC.name = name;
self loadingData 是我的 UIAlertView void 语句。感谢任何建议。
【问题讨论】:
标签: ios objective-c uialertview segue