Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 13    Views: 92

LeonG
Apple Fan
Profile
Posts: 694
Reg: Nov 08, 2011
Hamburg
17,740
01/20/14 11:12 AM (10 years ago)

Contact Card - ugly transition

Hey there, this has always been a problem, maybe the right time to solve it now :-) On the Contact Card plugin the default transition (slide from right to left) has a white loading screen in between the menu and actual contact card. If I change the transition to flip for example, it looks perfect as the white loading screen is not visible anymore, but if I press back, the menu breaks and weird things happen... This has always been the case on IOS, no matter which xcode/bt/ios version. Anybody fix this and share the code?
 
ChrisYemaya
Code is Art
Profile
Posts: 60
Reg: Jul 29, 2011
Orlando
3,400
like
01/21/14 09:33 PM (10 years ago)
@LeonG , if you happen to find a fix, keep us posted. I have experienced the same thing, and have come to rely heavily on the flip transition.
 
LeonG
Apple Fan
Profile
Posts: 694
Reg: Nov 08, 2011
Hamburg
17,740
like
01/22/14 03:07 AM (10 years ago)
Yes, flip transition would be good if that would work! David the plugin creator has no time to fix his own plugin but will ask Chris/Kittsy to help and pay for it.
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/22/14 07:05 AM (10 years ago)
I'll take a look at it - no charge. Can you add it to buzz-tools.com so I don't lose track of it?
 
LeonG
Apple Fan
Profile
Posts: 694
Reg: Nov 08, 2011
Hamburg
17,740
like
01/22/14 07:40 AM (10 years ago)
Hey Chris, thx! I would add it but I can't as the plugin is not listed in your drop down menu yet.
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/22/14 09:17 AM (10 years ago)
Oh sorry - I was thinking it was a David Book plugin! Yes, not all developers have asked to be part of buzz-tools.com.
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/22/14 10:32 AM (10 years ago)
Took a look at the plugin - unfortunately, there's not any good options available to you. The 'contact card' that you see is a standard Apple screen - MrDavid has just implemented some methods to populate the data based on your control panel input. The problem is, the only way to do this in a Buzztouch plugin is to load a blank screen and then load the contact screen. The actual contact screen (for some technical reasons) can't be a plugin itself, only loaded from a plugin. If I were creating an app that used this type of screen myself, I would change the code on whatever menu screen is calling it to go right to the actual contact screen, rather than to MrDavid's plugin. But, that takes a good deal of skill and would not be readily extendible to a variety of apps / BT users. As an alternative, you can try the documented suggestion of moving the [self showUnknownPersonViewController]; method from viewDidAppear to viewWillAppear. You'll find that code around line 112. Simply delete it there and paste it right after the [super viewWillAppear:animated]; method around line 70. (Don't paste it inside the green commented section).
 
LeonG
Apple Fan
Profile
Posts: 694
Reg: Nov 08, 2011
Hamburg
17,740
like
01/22/14 10:42 AM (10 years ago)
Hey Chris, thanks for your time looking into this. I was afraid this could not be solved :( The documented suggestion does not work, it just breaks the plugin. My client has 300 contacts he wants included in the app which I did with the json snippet keeper and menu with image advanced. All works, just the transition does not give it a professional feel. The white loading screen does not appear if the "flip" transition is chosen, but it breaks if you press the back button. Is this something that could be looked into? If not, maybe you can send me an offer how much a different coded way would work?
 
LeonG
Apple Fan
Profile
Posts: 694
Reg: Nov 08, 2011
Hamburg
17,740
like
01/22/14 03:39 PM (10 years ago)
For anyone interested: Chris made it work perfectly calling it out from the menu screen directly. Will cost you some small dollars, but it is worth it!
 
fusionsch
I hate code!
Profile
Posts: 516
Reg: Dec 28, 2010
Montreux Switze...
11,610
like
01/26/14 04:07 AM (10 years ago)
Workaround for the transition issue is now available in the plugin review... Check it out!
 
LeonG
Apple Fan
Profile
Posts: 694
Reg: Nov 08, 2011
Hamburg
17,740
like
01/26/14 04:42 AM (10 years ago)
Lol, sorry but that is not a workaround.
 
fusionsch
I hate code!
Profile
Posts: 516
Reg: Dec 28, 2010
Montreux Switze...
11,610
like
01/26/14 04:49 AM (10 years ago)
Sorry... but yes it is! Just try it...
 
LeonG
Apple Fan
Profile
Posts: 694
Reg: Nov 08, 2011
Hamburg
17,740
like
01/26/14 05:18 AM (10 years ago)
As long as it will always show a short loading screen before it switches to the contact card screen and other transitions are not possible, the problem is not solved. But hey, if you are happy, it's good.
 
fusionsch
I hate code!
Profile
Posts: 516
Reg: Dec 28, 2010
Montreux Switze...
11,610
like
01/26/14 05:52 AM (10 years ago)
Yes, Leon, turning a 'problem' into a nice effect makes me happy :-)
 

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.