這就是我到目前爲止得到的結果。 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