hi,all.
I add the ScrollView to the CCLayer,but it can not scroll when I touch it.
What should I do to let it work?
UIScrollView *scrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, 768, 3000)];
scrollView.maximumZoomScale = 4.0;
scrollView.minimumZoomScale = 0.75;
scrollView.clipsToBounds = YES;
scrollView.delegate = self;
UIView *theView = [[CCDirector sharedDirector] openGLView];
[theView addSubview:scrollView];
[[CCTouchDispatcher sharedDispatcher] addTargetedDelegate:self priority:0 swallowsTouches:YES];
ScrollView in cocos2d
(6 posts) (4 voices)-
Posted 1 year ago #
-
anyone can help me?
Posted 1 year ago # -
Use CCScrollView or CCTableView
Google helps you to find this classes.Posted 1 year ago # -
Where can I download CCScrollView. I ve been googling for some time now. I cant get one
Posted 3 months ago # -
NSScrollView
or
CCMenuAdvanced
Get the Video Plugin Posted 3 months ago # -
or CCScrollLayer?
http://www.cocos2d-iphone.org/forum/topic/17118Posted 3 months ago #
Reply
You must log in to post.