{"id":7126,"date":"2014-05-24T09:51:51","date_gmt":"2014-05-24T09:51:51","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/05\/24\/iftweetlabel-regexkitlite-open-uiwebview-collection-of-common-programming-errors-2\/"},"modified":"2014-05-24T09:51:51","modified_gmt":"2014-05-24T09:51:51","slug":"iftweetlabel-regexkitlite-open-uiwebview-collection-of-common-programming-errors-2","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/05\/24\/iftweetlabel-regexkitlite-open-uiwebview-collection-of-common-programming-errors-2\/","title":{"rendered":"IFTweetLabel RegexKitLite open UIWebView-Collection of common programming errors"},"content":{"rendered":"<p>I am using IFTweetLabel and have it to the point were it recognizes links but I am having an awful time opening a webview with the button IFTweetLabel creates. I a running the NSLog and can clearly see it is understanding each link when the button is presses but it will not open the URL for some reason .<\/p>\n<p>Below is the code I am using to show the view and load the string in a webView&#8230;.which all works besides the loading of the webview.<\/p>\n<p>Any suggestions would be very much appreciated! thank you!<\/p>\n<pre><code>- (void)handleTweetNotification:(NSNotification *)notification\n\n{\n[UIView beginAnimations:@\"animateView\" context:nil];\n[UIView setAnimationDuration:1.0];\n\nCGRect viewFrame = [MainwebView frame];\nviewFrame.origin.x = 220;\nMainwebView.frame = viewFrame;        \n\nMainwebView.alpha = 1.0; \nweb.alpha = 1.0;\n\nMainwebView.layer.shadowColor = [[UIColor blackColor] CGColor];\nMainwebView.layer.shadowOffset = CGSizeMake(1.0f, 1.0f);\nMainwebView.layer.shadowRadius = 8.0f;\nMainwebView.layer.shadowOpacity = 1.0f;     \n\n\n\n[self.view addSubview:MainwebView];\n[UIView commitAnimations];\n[web loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:tweetLabel.text]]]; \n\nNSLog(@\"handleTweetNotification: WTF notification = %@\", notification);\n}\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I am using IFTweetLabel and have it to the point were it recognizes links but I am having an awful time opening a webview with the button IFTweetLabel creates. I a running the NSLog and can clearly see it is understanding each link when the button is presses but it will not open the URL [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7126","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7126","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7126"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7126\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7126"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7126"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7126"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}