Git Product home page Git Product logo

Comments (6)

tapwork avatar tapwork commented on June 9, 2024

looks like that you are dragging a page when pushing a new controller, you should remove yourself as delegate and datasource from punchscrollview in dealloc
self.scrollview.punchDataSource = nil;
self.scrollview.punchDelegate = nil;

from punchscrollview.

bitflying avatar bitflying commented on June 9, 2024

I do as you told, thing seems better. but only "Page 0 In Section 0" and "Page 1 In Section 0" got be showed. I continued drag 4 times, and got crash at
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));

So, Can you give me a example which can work in UINavigation.

Thank in advance!

from punchscrollview.

tapwork avatar tapwork commented on June 9, 2024

Hi

let's do it the other way.
just send me your snippet and I have look. ;-)
Should be better to find the bug

Cheers
Christian

Christian Menschel
CEO & App Developer

tapwork. mobile design & development

Vogelsanger Strae 286 50825 Kln
fon: 0221.42 302 63 mobil: 0171.68 05 882
mail: [email protected]

www.tapwork.de

On 26.03.2012, at 09:40, bitflying wrote:

I do as you told, thing seems better. but only "Page 0 In Section 0" and "Page 1 In Section 0" got be showed. I continued drag 4 times, and got crash at
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));

So, Can you give me a example which can work in UINavigation.

Thank in advance!


Reply to this email directly or view it on GitHub:
#1 (comment)

from punchscrollview.

bitflying avatar bitflying commented on June 9, 2024
  1. I create a Empty project in XCode 4.2
  2. use PunchScrollView.h/PunchScrollView.m, ExamplePageView.h/ExamplePageView.m, PunchUIScrollViewViewController.h/PunchUIScrollViewViewController.m from your exmaple project
  3. In method application didFinishLaunchingWithOptions of AppDelegate.m , add:
    PunchUIScrollViewViewController *rvc = [[PunchUIScrollViewViewController alloc] init];
    UINavigationController *nvc = [[UINavigationController alloc] initWithRootViewController:rvc];
    [self.window addSubview:[nvc view]];

from punchscrollview.

bitflying avatar bitflying commented on June 9, 2024

It work!
I should use
self.window.rootViewController = nvc;
instead of
[self.window addSubview:[nvc view]];
No crash, nat more

Thanks Christian!

from punchscrollview.

tapwork avatar tapwork commented on June 9, 2024

Hi
The crash occured because you did hold retain the navigationcontroller. That is because you are using ARC. And if you build a controller (in your case a navigationcontroller) you need to hold it (retain it)
Because it will be will be released directly.

sent from mobile

Christian Menschel
CEO & App Developer

tapwork. mobile design & development

Vogelsanger Straße 286 · 50825 Köln
fon: 0221.42 302 63 · mobil: 0171.68 05 882
mail: [email protected]

www.tapwork.de

Am 27.03.2012 um 03:35 schrieb bitflying [email protected]:

It work!
I should use
self.window.rootViewController = nvc;
instead of
[self.window addSubview:[nvc view]];
No crash, nat more

Thanks Christian!


Reply to this email directly or view it on GitHub:
#1 (comment)

from punchscrollview.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.