提问人:Kavitha Madhu 提问时间:6/9/2017 最后编辑:Phillip MillsKavitha Madhu 更新时间:8/17/2017 访问量:48
他们是否可以在目标 C 中使用 XiB 按钮调用 TableViewController?
is their possible to call tableviewcontroller using xib button in objective c?
问:
我已经创建了一个自定义 uiView 并加载到 Appdelegate 的 AlertViewController 按钮中......在这里,我的问题是在我的自定义UIView中,我创建了一个One Button。当我单击该按钮时..我想使用它们的 id 在情节提要中移动 tableviewcontroller...但是我收到了UIKit错误。.
- (IBAction)RegisterBttn:(UIButton *)sender
{
UIStoryboard *mainStoryboard =[UIStoryboard storyboardWithName:@"Main_iPhone" bundle:nil];
UIViewController *vc = [mainStoryboard instantiateViewControllerWithIdentifier:@"tet"];
[self presentViewController:vc animated:YES completion:nil];
}
答: 暂无答案
评论