Outbreak
buzztouch Evangelist
Profile
Posts: 452
Reg: May 30, 2011
Colorado
14,620
03/12/13 08:25 PM (12 years ago)

Flashlight error. iOS

Receiving this error in xcode. Flashlight is not working. Located in Flashlight_feature.m Class method '+showIt::' not found (return type defaults to 'id') Class method '+showIt::' not found (return type defaults to 'id') Class method '+configureBackgroundAndNavBar::' not found (return type defaults to 'id') Thanks
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
03/12/13 09:05 PM (12 years ago)
Those are little bits and pieces left over from an unupdated plugin, it sounds like. Refresh your plugins from Buzztouch (and if you're self hosted, update from control panel after). Then redownload your app and try again. Or you could 'borrow' the offending statements from a similar plugin and replace the code, if it's not too many... Cheers! -- Smug
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
03/12/13 09:43 PM (12 years ago)
In your first error (in 'viewDidLoad), replace [BT_debugger showIt:self:@"viewDidLoad"]; with [BT_debugger showIt:self theMessage:@"viewDidLoad"]; In your second error (in viewWillAppear). replace [BT_debugger showIt:self:@"viewWillAppear"]; with [BT_debugger showIt:self theMessage:@"viewWillAppear"]; and for the third error (also in "viewWillAppear"), replace [BT_viewUtilities configureBackgroundAndNavBar:self:[self screenData]]; with [BT_viewUtilities configureBackgroundAndNavBar:self theScreenData:[self screenData]]; and you should be all good. Cheers! -- Smug
 
LevensGardener
Aspiring developer
Profile
Posts: 220
Reg: Sep 30, 2012
Kendal
10,450
like
03/13/13 12:13 AM (12 years ago)
Thanks for this- that did the trick!
 
Outbreak
buzztouch Evangelist
Profile
Posts: 452
Reg: May 30, 2011
Colorado
14,620
like
03/13/13 08:49 AM (12 years ago)
It made the errors go away but the flashlight does not work. Just shows black screen with none of the on and off images.
 
LevensGardener
Aspiring developer
Profile
Posts: 220
Reg: Sep 30, 2012
Kendal
10,450
like
03/13/13 08:54 AM (12 years ago)
Its a black screen in the simulator, but if you download it onto a phone it works as expected.
 
Outbreak
buzztouch Evangelist
Profile
Posts: 452
Reg: May 30, 2011
Colorado
14,620
like
03/13/13 08:56 AM (12 years ago)
Mine was white. For some reason the first time I ran it on the simulator it showed the Green "On" button and the Red "off" button. I can not get those to show anymore.
 
LevensGardener
Aspiring developer
Profile
Posts: 220
Reg: Sep 30, 2012
Kendal
10,450
like
03/13/13 08:59 AM (12 years ago)
Hmm. I don't think it has ever shown the buttons on the simulator for me. I have a black screen background there. All is OK on a device though.
 
Outbreak
buzztouch Evangelist
Profile
Posts: 452
Reg: May 30, 2011
Colorado
14,620
like
03/13/13 09:00 AM (12 years ago)
How does it get turned off and on without buttons?
 
LevensGardener
Aspiring developer
Profile
Posts: 220
Reg: Sep 30, 2012
Kendal
10,450
like
03/13/13 09:01 AM (12 years ago)
The buttons show just fine for me on the device. It is just the simulator that shows a blank screen. Very odd I know, but perhaps that is because the simulator on the mac does not have a built in light to light up...
 
Outbreak
buzztouch Evangelist
Profile
Posts: 452
Reg: May 30, 2011
Colorado
14,620
like
03/13/13 09:07 AM (12 years ago)
okay. cool
 

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.