SeongHo
SeongHo

Reputation: 1040

Objective C: UIScrollView inside a UIScrollView

Is it possible to put another scrollview inside a scrollview??

because in one page of my scrollview i need to put scrollable images.

I already tried it but it's not scrolling.

Can it be done? or is there another way??

Upvotes: 1

Views: 4312

Answers (3)

Subashini
Subashini

Reputation: 21

You can add a scroll view inside another scroll view. But image scrolling is possible with a single scroll view itself. You must have missed to set the delegate or set contentSize. Please check.

Upvotes: 1

Lorenzo B
Lorenzo B

Reputation: 33428

Yes, sure.

I suggest you to see PhotoScroller sample in Apple doc.

Hope it helps.

Edit

If you provide some code, maybe it is possible to help you.

Upvotes: 2

xda1001
xda1001

Reputation: 2459

You can add a scrollView on a scrollView, it doesn't matter.

the scrollView is not scrolling, did you call setContentSize?

Upvotes: 0

Related Questions