这就是我到目前为止得到的结果。 mainview.m将数据从一个视图传递到另一个视图(Storyboard,iOS)
-(void)prepareForSegue:(UIStoryboardSegue *)segue sender(id)sender {
secondView *secView = [segue destinationViewController]
secView.ext = @".com";
}
secondView.h
@interface secondView : UIViewController {
NSString *ext;
}
@proper (nonatomic, retain) NSString *ext;
@end
secondView.m
-(void)viewDidLoad {
NSString *url = [@"www.google" stringByAppendingFormat:ext]
}
而且它返回一个错误说ext是空......我究竟做错了什么?
我确实有过这些行..我只是忘了在这里输入它们,让我编辑! – Cloaky 2011-12-22 19:30:58