我正在尝试使用下面的代码将数据推送到SDWebImageDataSource
文件并推送视图。SDWebImageRootViewController
但是我有一个问题,即 imageLink(string) 在下一个变为 nullSDWebImageDataSource
但它将视图推送到SDWebImageRootViewController
.
我的问题在哪里?
- (void)showSDWebImageView
{
SDWebImageDataSource *imageController = [[SDWebImageDataSource alloc] init];
imageController.imageLink = string1;
NSLog(@"imagelink are: %@", imageController.imageLink);
[imageController release];
SDWebImageRootViewController *newController = [[SDWebImageRootViewController alloc] init];
[[self navigationController] pushViewController:newController animated:YES];
[newController release];
}
SDWebImageDataSource
。H
@property (nonmatic, retain) NSString *imageLink;
SDWebImageDataSource
.m
@synthesize imageLink;