{"id":1858,"date":"2011-01-26T20:02:48","date_gmt":"2011-01-26T15:02:48","guid":{"rendered":"http:\/\/aasims.wordpress.com\/?p=1858"},"modified":"2025-05-05T08:30:57","modified_gmt":"2025-05-05T08:30:57","slug":"how-to-show-url-in-uiwebview-in-iphoneipadipod-n-faq","status":"publish","type":"post","link":"https:\/\/aasimnaseem.com\/blog\/how-to-show-url-in-uiwebview-in-iphoneipadipod-n-faq\/","title":{"rendered":"How to show URL in UIWebView in iPhone\/iPad\/iPod"},"content":{"rendered":"<p>Hi everyone!<\/p>\n<p>Below is a small code to display contents over UIWebView.<\/p>\n<p>Assuming that you have declared a UIWebView in your header file; in my case it is <em>detailWebView.<\/em><\/p>\n<p>[code]<\/p>\n<p>NSString* str = @&quot;http:\/\/www.yahoo.com&quot;;<br \/>\nNSURL* url = [NSURL URLWithString:str];<br \/>\n[self.detailWebView loadRequest:[NSURLRequest requestWithURL:url]];<\/p>\n<p>[\/code]<\/p>\n<p>That&#8217;s it; keeping user interaction and multi-touch options checked in the xib file will allow the user to play with the web page.<\/p>\n<p>Stay blessed.<\/p>\n<p>share every bit of new thing you learn;<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/s08.flagcounter.com\/count\/pyAO\/bg=FFFFFF\/txt=000000\/border=FFFFFF\/columns=6\/maxflags=200\/viewers=0\/labels=1\/pageviews=1\/\" alt=\"free counters\" border=\"0\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi everyone! Below is a small code to display contents over UIWebView. Assuming that you have declared a UIWebView in your header file; in my case it is detailWebView. [code] NSString* str = @&quot;http:\/\/www.yahoo.com&quot;; NSURL* url = [NSURL URLWithString:str]; [self.detailWebView loadRequest:[NSURLRequest requestWithURL:url]]; [\/code] That&#8217;s it; keeping user interaction and multi-touch&#8230;<\/p>\n","protected":false},"author":1,"featured_media":5177,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[1044,1117,1118],"class_list":["post-1858","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ios","tag-uiwebview","tag-xcode","tag-xcode-tip"],"_links":{"self":[{"href":"https:\/\/aasimnaseem.com\/blog\/wp-json\/wp\/v2\/posts\/1858","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aasimnaseem.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aasimnaseem.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aasimnaseem.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aasimnaseem.com\/blog\/wp-json\/wp\/v2\/comments?post=1858"}],"version-history":[{"count":4,"href":"https:\/\/aasimnaseem.com\/blog\/wp-json\/wp\/v2\/posts\/1858\/revisions"}],"predecessor-version":[{"id":5249,"href":"https:\/\/aasimnaseem.com\/blog\/wp-json\/wp\/v2\/posts\/1858\/revisions\/5249"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aasimnaseem.com\/blog\/wp-json\/wp\/v2\/media\/5177"}],"wp:attachment":[{"href":"https:\/\/aasimnaseem.com\/blog\/wp-json\/wp\/v2\/media?parent=1858"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aasimnaseem.com\/blog\/wp-json\/wp\/v2\/categories?post=1858"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aasimnaseem.com\/blog\/wp-json\/wp\/v2\/tags?post=1858"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}