tags:

views:

226

answers:

1

I consider my self as an advanced apple developer but right now i have one question i cant over come. The situation is the follwing.

In my project (Iphone app) i have a nice webview to allow users to browse some websites and i have prev / next buttons like any browser has. So here comes my question...

How do i know when i have prev or next pages so i can disable eigher one of those 2 options ?.

A: 

There are properties on UIWebView for this:

@property(nonatomic, readonly, getter=canGoBack) BOOL canGoBack
@property(nonatomic, readonly, getter=canGoForward) BOOL canGoForward

They're booleans which return YES or NO depending on whether or not there are pages to navigate to in either direction.

Jasarien
Manny thanks for this answer !
Johnny Mast