Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xcode/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xcode Parse.com PFQueryTableView didselect行UIWebview_Xcode_Storyboard_Parse Platform - Fatal编程技术网

Xcode Parse.com PFQueryTableView didselect行UIWebview

Xcode 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

我正在使用Parse.com的PFQueryTableView

是否有任何方法可以使用didselect行以编程方式将PFObject(url)发送到UIWebview


谢谢。

如果有人感兴趣,他们可以下载并实现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];

}
顺便说一句,我是开发应用程序的高手。所以。。。这可能不是最好的方法。但是,它对我起了作用