Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.
Thread: Looking for help checking Boolean - Theos Related Q
is a discussion within theiPhone / iPod Touch SDK | Development Discussion
forums, a part of the3rd Party Apps For iPhone | iPod Touch
section;...
-
07-28-2012, 12:11 AM #1Green Apple
- Join Date
- Jan 2008
- Location
- Redondo Beach, CA
- Posts
- 34
- Thanks
- 5
- Thanked 0 Times in 0 Posts
Looking for help checking Boolean - Theos Related Q
I am looking to check
-(BOOL)isAnyPageLoaded;
It is in the BrowserController of MobileSafari. I have found a related answer on this forum, funny enough, by googling around:
However, when I plug in my own needs into it..umm look in SBMediaController.h
- (BOOL)isPlaying;
Code:BOOL playing = [[SBMediaController sharedInstance] isPlaying];
I simple get:Code:BOOL anythingOpen = [[BrowserController sharedInstance] isAnyPageLoaded];
How do I accomplish this? At this point and time I am simply trying to display and AlertView if isAnyPageLoaded == NO.Code:Tweak.xm:6: warning: no ‘+sharedInstance’ method found Tweak.xm:6: warning: (Messages without a matching method signature Tweak.xm:6: warning: will be assumed to return ‘id’ and accept Tweak.xm:6: warning: ‘...’ as arguments.) Tweak.xm:6: warning: no ‘-isAnyPageLoaded’ method found
Any help appreciated.
-
07-31-2012, 03:20 AM #2
You need to sharedInstance method to your BrowserController class - it's simply singleton :
Implementing a Singleton in Objective-C / iOS | Dr John Wordsworth
-
The Following User Says Thank You to mobostudio For This Useful Post:
viperfan91 (08-12-2012)




LinkBack URL
About LinkBacks
Reply With Quote