Comments (6)
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.
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.
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]
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.
- I create a Empty project in XCode 4.2
- use PunchScrollView.h/PunchScrollView.m, ExamplePageView.h/ExamplePageView.m, PunchUIScrollViewViewController.h/PunchUIScrollViewViewController.m from your exmaple project
- 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.
It work!
I should use
self.window.rootViewController = nvc;
instead of
[self.window addSubview:[nvc view]];
No crash, nat more
Thanks Christian!
from punchscrollview.
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]
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 moreThanks Christian!
Reply to this email directly or view it on GitHub:
#1 (comment)
from punchscrollview.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from punchscrollview.