2015-06-15 18 views
10

Tôi đang làm việc trên lớp UICollectionView và nó sẽ hiển thị thanh cuộn khi tôi cuộn trên danh sách, bạn có thể ẩn thanh cuộn khi cuộn?Cách ẩn thanh cuộn của UICollectionView

+0

cảm ơn, tôi tìm thấy giải pháp bản thân mình, chỉ cần showsHorizontalScrollIndicator = false – TIANLAOBA

Trả lời

34

C Mục tiêu:

[collectionView setShowsHorizontalScrollIndicator:NO]; 
[collectionView setShowsVerticalScrollIndicator:NO]; 

Swift 3,0

colView.showsHorizontalScrollIndicator = false 
colView.showsVerticalScrollIndicator = false 

Từ kịch bản:

enter image description here

+0

thanks a lot ... – TIANLAOBA

+0

@Tejas Ardeshna, tôi có thể làm cho nếp thanh cuộn ngang? –

9

trong Swift:

collectionView.showsHorizontalScrollIndicator = false 

trong Interface Builder: enter image description here

+0

Tôi có thể tạo thanh cuộn ngang không? –

Các vấn đề liên quan