Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.
iPhone / iPod Touch SDK | Development Discussionforums, a part of the
3rd Party Apps For iPhone | iPod Touchsection;
07-28-2012, 01:11 AM #1
Looking for help checking Boolean - Theos Related Q
I am looking to check
It is in the BrowserController of MobileSafari. I have found a related answer on this forum, funny enough, by googling around:
umm look in SBMediaController.h
BOOL playing = [[SBMediaController sharedInstance] isPlaying];
BOOL anythingOpen = [[BrowserController sharedInstance] isAnyPageLoaded];
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, 04: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: