Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 26    Views: 39

tifont
Aspiring developer
Profile
Posts: 14
Reg: Jun 12, 2013
Sassenheim
3,240
06/21/13 06:59 AM (12 years ago)

Alert menu not showing

Hi all, I'm completely new to BT, just trying to create my first app. I want to use the Alert Menu plugin linked to from a top navigation right button. I've linked the button to the menu and set the transition to fade. When I try to test it on my iPhone I do get to see the transition, but after that I just see the background of the previous screen. No menu, no cancel or back button. Can anybody please advise? Thanks in advance!
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
06/21/13 07:45 AM (12 years ago)
Hi tifont: First of all, welcome to Buzztouch! Second, thank you for downloading the Alert Menu Plugin. I have a couple of questions to try and get your Alert Menu working. 1. Are you using a Self Hosted Server? 2. Are you using version 1.1 of the plugin? 3. When was the last time you downloaded your source code? 4. What screen are you trying to link it from (Ex: Menu Simple, HTML Doc...) Jake
 
tifont
Aspiring developer
Profile
Posts: 14
Reg: Jun 12, 2013
Sassenheim
3,240
like
06/21/13 07:57 AM (12 years ago)
Hi Jake, Thanks for your fast reply. Due to your questions I figured out the issue. I bought the plugin and installed it, but never updated the source! Let's put this under rookie mistake for now ;-) Thanks! Timber
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
06/21/13 08:05 AM (12 years ago)
@tifont: I am glad you got the plugin working. Have a Great Day! Jake
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
06/21/13 08:25 AM (12 years ago)
"Rookie Mistake" is my middle name. Cheers! -- Smug
 
tifont
Aspiring developer
Profile
Posts: 14
Reg: Jun 12, 2013
Sassenheim
3,240
like
06/21/13 01:05 PM (12 years ago)
@Jake: Haven't got it working, just realised what the problem had to be ;-) I added the plugin files to my xcode build, but when I try to test it the app completely crashes. Below the xcode debug output of my 'tap' action: 2013-06-21 22:01:30.451 veggiebook[3831:907] BT_screen_customHTML: navRightTap 2013-06-21 22:01:30.453 veggiebook[3831:907] BT_viewControllerManager: handleRightButton for screen with nickname: "test_recept" itemId: A9BAA31374A693C45C89BAB itemType: BT_screen_customHTML 2013-06-21 22:01:30.454 veggiebook[3831:907] BT_application: getScreenDataByItemId FD0170A8EDB433B762EFAB8 2013-06-21 22:01:30.456 veggiebook[3831:907] BT_application: screenType is JC_AlertView for screen with nickname: "test_recept_menu" and itemId: FD0170A8EDB433B762EFAB8 2013-06-21 22:01:30.458 veggiebook[3831:907] BT_viewControllerManager: handleTapToLoadScreen 2013-06-21 22:01:30.459 veggiebook[3831:907] BT_viewControllerManager: the parent screen nickname: "test_recept" itemId: A9BAA31374A693C45C89BAB itemType: BT_screen_customHTML 2013-06-21 22:01:30.462 veggiebook[3831:907] BT_viewControllerManager: the menu/button tapped is itemId: 0 2013-06-21 22:01:30.469 veggiebook[3831:907] BT_viewControllerManager: the screen to load is nickname: "test_recept_menu" itemId: FD0170A8EDB433B762EFAB8 itemType: JC_AlertView 2013-06-21 22:01:30.471 veggiebook[3831:907] BT_viewControllerManager: initViewControllerForScreen nickname: "test_recept_menu" itemId: FD0170A8EDB433B762EFAB8 type: JC_AlertView 2013-06-21 22:01:30.473 veggiebook[3831:907] JC_AlertView: INIT 2013-06-21 22:01:30.475 veggiebook[3831:907] BT_viewUtilities: setting nav-bar background for "test_recept_menu" color: #000000 2013-06-21 22:01:30.478 veggiebook[3831:907] BT_navigationController: pushViewController 2013-06-21 22:01:30.479 veggiebook[3831:907] BT_navigationController: pushViewController for screen: FD0170A8EDB433B762EFAB8 2013-06-21 22:01:30.482 veggiebook[3831:907] BT_navigationController: transition type: fade 2013-06-21 22:01:30.487 veggiebook[3831:907] JC_AlertView: viewDidLoad 2013-06-21 22:01:30.497 veggiebook[3831:907] BT_screen_customHTML: viewWillDisappear in BT_viewController BASE CLASS 2013-06-21 22:01:30.499 veggiebook[3831:907] JC_AlertView: viewWillAppear 2013-06-21 22:01:30.501 veggiebook[3831:907] BT_viewUtilities: configureBackgroundAndNavBar for screen with nickname: "test_recept_menu" and itemId: FD0170A8EDB433B762EFAB8 and type: JC_AlertView 2013-06-21 22:01:30.511 veggiebook[3831:907] BT_fileManager: File does exist in Xcode bundle: background.png 2013-06-21 22:01:30.513 veggiebook[3831:907] BT_background_view: Image for background view exists in Xcode bundle - not downloading. 2013-06-21 22:01:30.515 veggiebook[3831:907] BT_background_view: setImage 2013-06-21 22:01:30.525 veggiebook[3831:907] veggiebook_appDelegate: supportedInterfaceOrientationsForWindow 2013-06-21 22:01:30.526 veggiebook[3831:907] SHOULD NOT ROTATE 2013-06-21 22:01:30.528 veggiebook[3831:907] JC_AlertView: canBecomeFirstResponder in BT_viewController BASE CLASS 2013-06-21 22:01:30.533 veggiebook[3831:907] BT_navigationController: popViewControllerAnimated 2013-06-21 22:01:30.534 veggiebook[3831:907] BT_navigationController: popViewControllerAnimated for screen: FD0170A8EDB433B762EFAB8 2013-06-21 22:01:30.536 veggiebook[3831:907] BT_navigationController: transition type: fade 2013-06-21 22:01:30.620 veggiebook[3831:907] BT_screen_customHTML: viewWillAppear 2013-06-21 22:01:30.624 veggiebook[3831:907] BT_viewUtilities: configureBackgroundAndNavBar for screen with nickname: "test_recept" and itemId: A9BAA31374A693C45C89BAB and type: BT_screen_customHTML 2013-06-21 22:01:30.659 veggiebook[3831:907] BT_fileManager: File does exist in Xcode bundle: background.png 2013-06-21 22:01:30.664 veggiebook[3831:907] BT_background_view: Image for background view exists in Xcode bundle - not downloading. 2013-06-21 22:01:30.667 veggiebook[3831:907] BT_background_view: setImage 2013-06-21 22:01:30.675 veggiebook[3831:907] BT_screen_customHTML: canBecomeFirstResponder in BT_viewController BASE CLASS 2013-06-21 22:01:30.682 veggiebook[3831:907] BT_screen_customHTML: viewDidAppear in BT_viewController BASE CLASS 2013-06-21 22:01:30.716 veggiebook[3831:907] JC_AlertView: launchAlert 2013-06-21 22:01:30.721 veggiebook[3831:907] -[JC_AlertView setAlertTitle:]: unrecognized selector sent to instance 0x1ddc7c80 2013-06-21 22:01:30.726 veggiebook[3831:907] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[JC_AlertView setAlertTitle:]: unrecognized selector sent to instance 0x1ddc7c80' *** First throw call stack: (0x331c12a3 0x3ae5b97f 0x331c4e07 0x331c3531 0x3311af68 0xdf901 0x33acf277 0x331965df 0x33196291 0x33194f01 0x33107ebd 0x33107d49 0x36cc92eb 0x3501d301 0xcc377 0x97bf8) libc++abi.dylib: terminate called throwing an exception
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
06/21/13 01:13 PM (12 years ago)
@tifont: did you just add the files to the project, or did you download new source code? Jake
 
tifont
Aspiring developer
Profile
Posts: 14
Reg: Jun 12, 2013
Sassenheim
3,240
like
06/21/13 01:15 PM (12 years ago)
I compiled a 'fresh' source code from BT.
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
06/21/13 01:16 PM (12 years ago)
What settings are filled out in the JC_AlertView Plugin page in the control panel? Can you post a screenshot? Jake
 
tifont
Aspiring developer
Profile
Posts: 14
Reg: Jun 12, 2013
Sassenheim
3,240
like
06/21/13 01:23 PM (12 years ago)
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
06/21/13 01:35 PM (12 years ago)
@tifont: Yes. Thank you for posting the screenshot. I have gone through many files and tried to reproduce this issue, but I was not successful. Here is a possible problem I thought of: Try changing the following settings in your plugin: 1. Change the Title to "Title" 2. Change the Message to "Message" 3. Change the Button Message to "Button 1" 4. Clean the Xcode Build Does this work? Thanks, Jake
 
tifont
Aspiring developer
Profile
Posts: 14
Reg: Jun 12, 2013
Sassenheim
3,240
like
06/21/13 01:49 PM (12 years ago)
I tried this, but the app still crashes.
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
06/21/13 01:50 PM (12 years ago)
Does the app crash, or freeze? You can tell the difference because a crash will reveal the iOS home screen, and a freeze will call a signal or thread. Jake
 
tifont
Aspiring developer
Profile
Posts: 14
Reg: Jun 12, 2013
Sassenheim
3,240
like
06/21/13 01:54 PM (12 years ago)
When connected to xcode debug it freezes: it stays in the same screen, but doesn't respond. When disconnected from xcode it crashes and returns to springboard.
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
06/21/13 01:59 PM (12 years ago)
Have you tried to use the menu anywhere else in the app? Can you try to connect the AlertMenu with a different transition to another screen? (Like a MenuSimple) Does it still freeze? Jake
 
tifont
Aspiring developer
Profile
Posts: 14
Reg: Jun 12, 2013
Sassenheim
3,240
like
06/22/13 02:21 AM (12 years ago)
Yep, that doesn't work either. I also tried removing global background color and image, but without effect.
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
06/22/13 07:18 AM (12 years ago)
Ok, have you added anything like Scringo, or Socialize into your app? (Or any other code modifications?) Jake
 
tifont
Aspiring developer
Profile
Posts: 14
Reg: Jun 12, 2013
Sassenheim
3,240
like
06/22/13 09:17 AM (12 years ago)
No, I did not.
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
06/22/13 09:19 AM (12 years ago)
Can you email your source code to me and I will try to see what is wrong? I will PM you my email address. Jake
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
06/22/13 09:21 AM (12 years ago)
I cant find your PM, can you send it to [removed for security] Jake
 
tifont
Aspiring developer
Profile
Posts: 14
Reg: Jun 12, 2013
Sassenheim
3,240
like
06/22/13 09:26 AM (12 years ago)
I just sent you the source code. Thanks in advance!
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
06/22/13 09:47 AM (12 years ago)
I have run your source code, and the alert is functioning on my system. Xcode 4.6.3, iOS 6.1, OS X 10.8.4 Here is a screenshot of it working for me: http://jworldhosting.com/Uploads/Images/AlertMenu_for_Timber.png What Xcode are you using? What OS are you Targeting? Jake
 
tifont
Aspiring developer
Profile
Posts: 14
Reg: Jun 12, 2013
Sassenheim
3,240
like
06/22/13 10:36 AM (12 years ago)
I'm using Xcode 4.2, iOS SDK 6.1 on OS X 10.6.8.
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
06/22/13 11:12 AM (12 years ago)
Do you have the ability to upgrade to Lion or Mountain Lion with Xcode 4.6.3? (New features and simulator updates) Your version of Xcode could be the source of the problem. Jake
 
tifont
Aspiring developer
Profile
Posts: 14
Reg: Jun 12, 2013
Sassenheim
3,240
like
06/22/13 11:26 AM (12 years ago)
Not at the moment. My MacBook Pro has to be fixed first. A defect in the videocard prohibits me from upgrading. I'm afraid I'll have to find a way to work without Alert Menu at the moment.
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
06/22/13 11:27 AM (12 years ago)
I am very sorry that the problem could not be resolved. Jake
 
tifont
Aspiring developer
Profile
Posts: 14
Reg: Jun 12, 2013
Sassenheim
3,240
like
06/22/13 11:37 AM (12 years ago)
No problem! Thanks for all you help so far. It's good to know BT has an active community willing to help! :-) Timber
 

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.