Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 6    Views: 60

mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
03/27/14 06:16 PM (10 years ago)

[self navLeftTap] is ignored, no errors, no warnings

Hi guys, I have a plugin ready to go live, the only thing it needs is for it to "go back to last screen" (like the usual back button). I'm using the built in method BT uses: [self navLeftTap]; and there are no errors and no warnings. It gets ignored completely, the app does not want to leave the screen it's in, regardless of how much I've tried it to get to go back. I've tried the traditional popViewControllerAnimated with no luck (errors/warnings), no luck debugging. The plugin works great, but if the user is stuck on the plugin screen, I can't release it. Any help would be appreciated, in posts, or pop over to https://www.btmods.com/chat if you have any questions or can help out. Thanks a ton, David https://btmods.com/chat
 
Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
like
03/27/14 06:44 PM (10 years ago)
Hey MrDavid... Have you tried adding some NSlog test text to the viewdiddisappear or viewdidunload method, just so you can see if they are being fired before it hands it over to the BT methods. Just a thought that might help pinpoint the fail point. If the NSlog text doesn't show, it would tell you it's something in the plugins code before it hands it off to the core function. Could narrow the scope a bit. Whenever I get something with no errors, my motto is "ok then, let's make some and see what reports back", using NSLog as my weapon of choice. Works good to find the area it's failing in Another obvious one, but thought I'd mention it just in case... You're sure the self view in question is an actual sub view with a parent right? Otherwise it wouldn't have anything to go back to... Resulting in a situation probably like yours above. Just thinking out loud here...
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
03/27/14 06:53 PM (10 years ago)
Angry, yup I NSLogged the crap out of it, it's getting there. Your second point may be more likely, through, I could swear it's a sub view with a parent. Perhaps not... I'll look into that further. Thanks Angry. David https://btmods.com/chat ^ Chat with other BT members live!
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
03/28/14 07:00 AM (10 years ago)
Have you tried: [self.navigationController popViewControllerAnimated:YES]; This code does not rely on the BT Method, but rather on iOS Core Functionality. Jake
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
03/28/14 12:17 PM (10 years ago)
Hi Jake, Yup in my first post I mentioned I tried the classic popViewControllerAnimated, no luck, I have a friend looking into it now and it seems Angry was in the right direction with his guess. Thanks for posting. David https://btmods.com/chat ^ Chat with other BT members live!
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
03/28/14 10:03 PM (10 years ago)
What was the fix?
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
03/28/14 10:37 PM (10 years ago)
None yet, turns out to be more complicated then I thought. This plugin has been delayed for about 4-5 days now. David https://btmods.com/chat ^ Chat with other BT members live!
 

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.