Several pages
Hi,
I tried your sample code that is really a good starting point to develop a magazine app, it is really helpful to understand Newsstand mechanisms. I am facing some problems trying to add pages in order to see more than 6 issues (admitting that I want to display 6 issues per page as in your example).
I tried a couple of things, but I guess I haven't understood something in your code, because I get the same error and couldn't fix it.
If needed, this is what I tried (and haven't done other modification):
- containerView is now a UIScrollView.
- Counting issues, I set containerView frame size dynamically each time updateShelf method is called (this allows to support horizontal and vertical orientation and dispatch issues as needed).
- I get 6 issues per pages, it's fantastic and so on... but... when I try to rotate the device, I get "wait_fences: failed to receive reply: 10004003"
Some help would be very appreciated.
Many thanks.
Hi,
you should not change the containerView frame size, as it is fixed and fits within the screen boundaries. Instead you must dynamically update the scroll view contentSize property based on the issues count. Clearly you must recalculate the contentSize after each interface orientation change. As far as the "wait_fences" error, I have no idea what is it: it could be related to the orientation animation, check if you have some code inside the rotate interface view controller methods.
Carlo
Inviato da iPhone
Il giorno 07/mag/2012, alle ore 12:47, Tokanod [email protected] ha scritto:
Hi,
I tried your sample code that is really a good starting point to develop a magazine app, it is really helpful to understand Newsstand mechanisms. I am facing some problems trying to add pages in order to see more than 6 issues (admitting that I want to display 6 issues per page as in your example).
I tried a couple of things, but I guess I haven't understood something in your code, because I get the same error and couldn't fix it.
If needed, this is what I tried (and haven't done other modification):
- containerView is now a UIScrollView.
- Counting issues, I set containerView frame size dynamically each time updateShelf method is called (this allows to support horizontal and vertical orientation and dispatch issues as needed).
- I get 6 issues per pages, it's fantastic and so on... but... when I try to rotate the device, I get "wait_fences: failed to receive reply: 10004003"
Some help would be very appreciated.
Many thanks.
Reply to this email directly or view it on GitHub: https://github.com/viggiosoft/HowToMakeAMagazineApp/issues/2
Hi Carlo,
Thank you for your answer.
Instead you must dynamically update the scroll view contentSize property based on the issues count. Hum sorry, perhaps I didn't make myself clear, that's what I did.
I figured out what was wrong... everything was working perfectly since the beginning, except that my cover images were too big (size), I didn't paid attention about this "detail" before.
Sorry for the waste of time concerning such kind of stupidities.
OK, it's great that you fixed it.
Carlo
On May 8, 2012, at 15:04 , Tokanod wrote:
Hi Carlo,
Thank you for your answer.
Instead you must dynamically update the scroll view contentSize property based on the issues count. Hum sorry, perhaps I didn't make myself clear, that's what I did.
I figured out what was wrong... everything was working perfectly since the beginning, except that my cover images were too big (size), I didn't paid attention about this "detail" before.
Sorry for the waste of time concerning such kind of stupidities.
Reply to this email directly or view it on GitHub: https://github.com/viggiosoft/HowToMakeAMagazineApp/issues/2#issuecomment-5574004