Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 7    Views: 60

MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
06/08/15 03:10 PM (9 years ago)

MacImage Gallery

Hey, having some trouble with MacImage Gallery on BT core 3.0 for IOS. The app crashed when the device is rotating while in this screen, and, using local pics, all pics in the project, it only shows the first image repeated. The logs give out this: 2015-06-08 22:58:33.869 regret[67074:3041646] BT_fileManager: File does exist in Xcode bundle: "mo48.jpg" 2015-06-08 22:58:33.869 regret[67074:3041646] BT_fileManager: File does exist in Xcode bundle: "mo49.jpg" 2015-06-08 22:58:33.869 regret[67074:3043082] BT_fileManager: File does not exist in cached directory: "mo01.jpg" When screen is loaded, I get the list of all files, as existing in the bundle, up to mo49.jpg. Then I get two files not existed, but just before they did exist, and I can only view the first image mo01.jpg, and when I scroll to the next I keep getting the same image and on the logs get that the files do not exist. Suggestions? Thanks.
 
Red Dog
buzztouch Evangelist
Profile
Posts: 805
Reg: Jun 16, 2011
Southern Califo...
18,800
like
06/10/15 12:00 PM (9 years ago)
HI MadRod I was experiencing a similar issue viewing images from my Flickr feed with this plugin. image one kept repeating when I scrolled through my library. I cant remember who posted this fix, but it worked for me: ~~~~~~~~~~~~~~~~~~~~ Go to the Mac_zoomingScrollView.m file in your project. If you have added arm64 to your architectures then you should have a few warnings in this file. One of the warnings will be inside of the - (void)setIndex:(int)value method (around line 82). This is the line of code that is causing the problem: if (value == NSNotFound) All you need to do is change that line to the following: (value == (int)NSNotFound) So the only change that you are making is adding (int) before NSNotFound. Run your app and the image gallery should now be working perfectly
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
06/10/15 12:38 PM (9 years ago)
I'll give it a try. Thanks a lot.
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
06/10/15 12:40 PM (9 years ago)
Would you know how to prevent this plugin from rotating? It seems it also crashes when rotating.
 
Red Dog
buzztouch Evangelist
Profile
Posts: 805
Reg: Jun 16, 2011
Southern Califo...
18,800
like
06/10/15 01:07 PM (9 years ago)
Haha. Thanks for pointing that out. I just tried my app and it crashed when rotating that plugin too. I don't have a fix, but will try to work on it this weekend.
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
06/10/15 02:26 PM (9 years ago)
For the image repeating issue, your fix worked fine. Thanks a lot.
 
Red Dog
buzztouch Evangelist
Profile
Posts: 805
Reg: Jun 16, 2011
Southern Califo...
18,800
like
06/10/15 09:45 PM (9 years ago)
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
06/11/15 01:36 AM (9 years ago)
Yes i did, that allowed to prevent the rotation. But the image gallery should be able to rotate right? I've had it working in the past. Thanks.
 

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.