Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iCarousel stay within border #52

Closed
jNoxx opened this issue Oct 27, 2011 · 3 comments
Closed

iCarousel stay within border #52

jNoxx opened this issue Oct 27, 2011 · 3 comments

Comments

@jNoxx
Copy link

jNoxx commented Oct 27, 2011

Hey Nick,

This is actually one of the best opensource things for iOS, better then Three20 or whatever, very very very easy to use and just lovely.
there is just one thing bugging me actually. That the Carousel isn't respecting the bounds of it's view within a nib.
So if you create lets say an UIView with iCarousel as parent in a xib on a ViewController. And you make it half of iPad screen.
That when it gets loaded, they are over the border of what you tell them to stay in, is it me, am I missing something, or no one actually cared about this? :)

Greetings, Noxx.

@nicklockwood
Copy link
Owner

I actualy just added this as an FAQ item to the docs. It wasn't in the docs because it's a standard feature of UIView: Just set clipToBounds = YES (it's called something else in Interface Builder, but I think you'll find it).

Nick

(Sent from my iPhone)

On 27 Oct 2011, at 21:59, jNoxx reply@reply.github.com wrote:

Hey Nick,

This is actually one of the best opensource things for iOS, better then Three20 or whatever, very very very easy to use and just lovely.
there is just one thing bugging me actually. That the Carousel isn't respecting the bounds of it's view within a nib.
So if you create lets say an UIView with iCarousel as parent in a xib on a ViewController. And you make it half of iPad screen.
That when it gets loaded, they are over the border of what you tell them to stay in, is it me, am I missing something, or no one actually cared about this? :)

Greetings, Noxx.

Reply to this email directly or view it on GitHub:
#52

@jNoxx
Copy link
Author

jNoxx commented Oct 27, 2011

Oh my, do I feel like a retard Nick..
I've been coding for 2 years, and this is just a frikking tick in IB. Ah well, we all make mistakes right ;) it works like a charm now, appreciate the fast response though! :)
I only get 1 more warning in the newest version.

NSComparisonResult compareViewDepth(UIView *view1, UIView *view2, iCarousel *self)
This gives No previous prototype for Function ^

@jNoxx jNoxx closed this as completed Oct 27, 2011
@jNoxx jNoxx reopened this Oct 27, 2011
@nicklockwood
Copy link
Owner

I've added the function prototype to the interface, which should get rid of the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants