Discussion Forums  >  WebViews and HTML for Mobile

Replies: 3    Views: 113

xparte
Aspiring developer
Profile
Posts: 50
Reg: May 08, 2012
location unknow...
2,450
10/17/12 05:20 PM (13 years ago)

Showing UIToolbar with Custom URL

Hi, Has anyone forced their app to show the UIToolbar with the Custom URL plugin? I call a JQuery menu structure through the Custom URL plugin but the problem I'm having is that the back button (at the bottom - not navigation bar) won't step back to the previous menu level unless the user hits refresh first (which I can't expect them to do). I can add a back button on the Navigation bar but that will take me straight back to the home menu ignoring the levels in my JQ menu. Have searched the forum for a solution but can't seem to find one so the only thing I can think of is to add the UIToolbar so they've got the browser (safari?) navigation buttons. Has anyone found a solution for this or know how to show the UIToolbar? http://3.bp.blogspot.com/-jGy-do05oso/T3FQtMw2s5I/AAAAAAAAABg/MI9DCxLvQuE/s1600/UIToolbar.png Thanks,
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
10/18/12 07:28 AM (13 years ago)
I've used the UIToolbar in some plug in screens I've made for myself. I build a blank screen and use the Interface Builder to drop in a UIWebview on a screen and then insert a UIToolbar toolbar on the bottom of the screen. Perhaps you can do that and then drop your HTML in the uiwebview with an NSString? it would look something like this in a View Did Load method n your new blank plug-in? NSString *myHTML = @"<html><body><h1>Hello, world!</h1></body></html>"; [myUIWebView loadHTMLString:myHTML baseURL:nil];
 
xparte
Aspiring developer
Profile
Posts: 50
Reg: May 08, 2012
location unknow...
2,450
like
10/21/12 08:10 PM (13 years ago)
Hey Atrain, Sorry for the delay in reply. Haven't been online this weekend so just read this now. I'll take a look and see how if it'll work for me using your method above. Thanks for the info!
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
10/22/12 06:32 AM (13 years ago)
No prob, I'm not on-line much on weekends either. Hopefully that works. I've dropped a lot of HTML in screens with that type of code/method.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.