Is there any way how we can use CCScrollView for vertical scrolling .. ?
I am trying to use it, And I am not able to make it scroll in vertical direction.
Please help me with some ideas or tutorials on how to use CCScrollView for scrolling vertically .. ? Or any other way by which a vertical scroll can be achieved in Cocos2d.. ?
Thanks for your time..!!
I found the work around.. THanks #Superman: I looked into mixing UIKit with Cocos2d and I found THIS, It helped me. !!
I hope It helps anyone looking out for the same :)
CCScrollView *scrollView=CCScrollView::create(CCSizeMake(screenSize.width,screenSize.height));
scrollView->setContentSize(CCSizeMake(screenSize.width,screenSize.height-header->getContentSize().height));
scrollView->setPosition(ccp(0,0));
scrollView->setDirection(kCCScrollViewDirectionVertical);
this->addChild(scrollView,0);
Related
I am new to gestures and I don't get any proper solution for achieving my request,
Can anyone help me in dragging a container up and down vertically to a certain point?.
I need to achieve something like the below image.
Thanks in advance.
Consider using draggable home if you want a ready-made similar effect.
If you want to replicate the goggle maps UI one-on-one, consider reading DraggableScrollableSheet and make one your own.
Hope it helps!
I found this functionality: Look of an auto-scrolling horizontal scrollview and would now like to include it in my app. Does anyone know how something like this might work or where I can start? I appreciate help. Best regards
Now I'm learning on SwiftUI.
What I want to do is make window as Hexagon or circle. For putting this app with opacity on edge of the display beautifully.
But the only thing I can do is making it as square. Like many apps have been.
This is possible?
Then what should I do? Please give me some advices.
Sorry for my poor English. Thank you. Have a nice day!
Yes, you can create a borderless NSWindow and host a view with NSHostingView.
I have collectionView with images and labels. As you can see that the only "Home" image looks fine, the others cut from sides. Can someone please tell me what is the problem and teach me how can I fix that?
I've played with contentMode, but it didn't work for me.
Thank you in advance!
I've been looking at integrating the OpenFlow API developed by Alex Fajkowski: http://fajkowski.com/blog/2009/08/02/openflow-a-coverflow-api-replacement-for-the-iphone/ into an app I am working on.
Does anyone know how I can stack the images vertically so that I can scroll the images from top to bottom/bottom to top like a rolodex?
The default behaviour is for OpenFlow to stack the images horizontally and scroll the images from right to left/left to right just like CoverFlow. I've been trying to get my head around how 3D animation is done in Objective-C without much success...
Thank you for your help in advance.
The really easy thing to do is to rotate the whole view with something like this:
openFlowView.transform = (CGAffineTransform){0,1,-1,0,0,0};
You'll then have to un-rotate all the flowing views (or rotate the images, or whatever).
The better way is to fix OpenFlow, but without looking at its source code, it's not obvious what to change (mostly you should just need to swap "x" and "y").