logo
  • 教程列表
  • SO官方文檔
  • UIScrollView 中
    • 使用自動佈局滾動內容
    • 建立 UIScrollView
    • ScrollView with AutoLayout
    • 滾動檢視內容大小
    • EnableDisable 滾動
    • 放大 InOut UIImageView
    • 檢測 UIScrollView 何時完成使用委託方法滾動
    • 限制滾動方向
  1. StackOverflow 文件
  2. iOS 教程
  3. UIScrollView 中
  4. EnableDisable 滾動

EnableDisable 滾動

Created: November-22, 2018

屬性 scrollEnabled 儲存 Boolean 值,該值確定是否啟用滾動。
如果此屬性的值為 true / YES,則啟用滾動,否則不啟用。預設值為 true

迅速

scrollview.isScrollEnabled = true

Objective-C

scrollview.scrollEnabled = YES;
  • 放大 InOut UIImageView
  • 滾動檢視內容大小

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 關於本站
  • 免責聲明