Xcode Parse.com PFQueryTableView didselect行UIWebview
我正在使用Parse.com的PFQueryTableView 是否有任何方法可以使用didselect行以编程方式将PFObject(url)发送到UIWebviewXcode Parse.com PFQueryTableView didselect行UIWebview,xcode,storyboard,parse-platform,Xcode,Storyboard,Parse Platform,我正在使用Parse.com的PFQueryTableView 是否有任何方法可以使用didselect行以编程方式将PFObject(url)发送到UIWebview 谢谢。如果有人感兴趣,他们可以下载并实现SVWebViewController 并使用以下代码 我的.H文件包含以下内容 ... @interface HomeworkSiteViewController : UITableViewController <UITableViewDelegate> { NSA
谢谢。如果有人感兴趣,他们可以下载并实现SVWebViewController 并使用以下代码 我的.H文件包含以下内容
...
@interface HomeworkSiteViewController : UITableViewController <UITableViewDelegate>
{
NSArray *sectionsArray;
}
@property (strong, nonatomic) NSArray *sectionsArray;
@end
@implementation HomeworkSiteViewController
@synthesize sectionsArray;
- (void)viewDidLoad
{
。。。
//从后台解析中检索对象并存储到NSArray中。(我将我的储存在ArrayDataDescription中)
//然后将从parse(ArrayDataDescription)获得的数组存储到sectionsArray中,以便您可以使用以下命令在didSelectRow中访问它
self.sectionsArray = ArrayDataDesription;
然后在didSelectRow中启动SVModalWebViewController
对于“initWithAddress:”从数组访问url
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
SVModalWebViewController *webViewController = [[SVModalWebViewController alloc] initWithAddress:[[sectionsArray objectAtIndex:indexPath.row] valueForKey:@"href"]];
[self presentModalViewController:webViewController animated:YES];
}
顺便说一句,我是开发应用程序的高手。所以。。。这可能不是最好的方法。但是,它对我起了作用