如何使用下面的代码将NSString值传递给“webwhatsnew”子视图。谢谢iOS:在视图之间传递数据(数组值或字符串)?
-(IBAction)Whatsnew {
NSString *myString =[URL absoluteString];
// how can I pass this value to "webwhatsnew" subview
webwhatsnew = [[WebWhatsnewView alloc]initWithNibName:@"WebWhatsnewView"bundle:nil];
[self.view addSubview:webwhatsnew.view];
}
感谢Novarg.No希望上面的代码不工作..pls验证我的屏幕拍摄.http://www.flickr.com/photos/ambitionbag/7073069907/in/photostream/lightbox/ – Suppry 2012-04-13 07:52:45
@JoshyJoseph你也能合成它在.m文件? – Novarg 2012-04-13 07:54:28
我已经添加了@synthesize someString;在WebWhatsnewView.m但同样的问题http://www.flickr.com/photos/ambitionbag/7073069907/in/photostream/lightbox/ – Suppry 2012-04-13 08:02:39