Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / [iOS] IMPORTANT FOR PAUL!!!

Author
Message
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 10th Jul 2015 19:35
Hi Paul, i discovered why the MKMapView doesn't refresh on iOS.

It depend on this:



As you see to get the gesture back to work on some View, i must use the NSTimer.
What do you think about this?

Is safe or you must update it to work with the better NSDefaultRunLoopMode ?

I will do some other test and i will inform you if i found something interesting.

xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 10th Jul 2015 19:55
Ok i found a workaround, but you need to investigate for the Threads and the RunLoop too.

This is the code i changed to get ScrollViews and MKMapView work again...

Old Code
[displayLink addToRunLoopNSRunLoop currentRunLoop] forMode:NSDefaultRunLoopMode];

New Code Fix
[displayLink addToRunLoopNSRunLoop currentRunLoop] forMode:NSRunLoopCommonModes];

Hope this will send you in the right direction.

I also found some help on StackOverflow : HERE

Let me know if is ok my code in this way:


xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 10th Jul 2015 21:38
Ok i found that the common mode check about all run loop, so in this case is the best to get continuous animations of uiview and tables while the loop do something.

Paul confirm me is ok to use the common mode loop.
Thx in advance!

Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 13th Jul 2015 19:40
I'm not familiar with what the different loop modes do, I used NSDefaultRunLoopMode because it was in an example application, so I don't know the effects of using the common mode loop. Most AppGameKit applications aren't going to be using iOS UI widgets anyway so I probably won't be exploring this.
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 14th Jul 2015 17:41
Thx Paul, anyway, all is working good with the new CommonModes.
So i think is safe.

Maybe you could add it in the official Template as a choice for a possible lost of touches on some Views.


Soon i will post my last Template and maybe you can give it a look.

bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 14th Jul 2015 22:25
TGC should invest some time and fix these things if they make integrating ios UI more compatible with AGK

Login to post a reply

Server time is: 2024-11-25 21:53:03
Your offset time is: 2024-11-25 21:53:03