<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          LTScrollViewiOS ScrollView 嵌套解決方案

          聯(lián)合創(chuàng)作 · 2023-09-26 06:11

          ScrollView 嵌套 ScrolloView(UITableView 、UICollectionView)解決方案, 支持OC / Swift。

          CI Status Version License Platform

          Demo文件路徑以及說明

          • LTScrollView / Example : 為 Swift 使用示例.
          • LTScrollView / OCExample : 為 OC 使用示例.
          • 支持的子 View 為 UIScrollView、UICollectionView、UITableView.

          CocoaPods安裝

          安裝CocoaPods 使用以下命令:

          $ gem install cocoapods

          Podfile

          在你的 Podfile中添加LTScrollView

          source 'https://github.com/CocoaPods/Specs.git'
          platform :ios, '8.0'
          
          target 'TargetName' do
          #注意此處需要添加use_frameworks!
          use_frameworks!
          
          pod 'LTScrollView', '~> 0.2.0'
          end

          然后,使用以下命令安裝

          $ pod install

          提示錯誤 [!] Unable to find a specification for LTScrollView 解決辦法:

          $ pod repo remove master
          $ pod setup
          

          Swift使用說明

          Swift.LTSimple使用說明

          1. 創(chuàng)建LTSimpleManager實(shí)例對象
          @objc public init(frame: CGRect, viewControllers: [UIViewController], titles: [String], currentViewController:UIViewController, layout: LTLayout)
          1. 設(shè)置headerView
          @objc public func configHeaderView(_ handle: (() -> UIView?)?)
          1. 子控制器中g(shù)lt_scrollView進(jìn)行賦值
          self.glt_scrollView = self.tableView(self.scrollView / self.collectionView)
          1. 更多使用說明請參考Demo(LTScrollView / Example)

          Swift.LTAdvanced使用說明

          1. 創(chuàng)建LTAdvancedManager實(shí)例對象、并設(shè)置headerView
          @objc public init(frame: CGRect, viewControllers: [UIViewController], titles: [String], currentViewController:UIViewController, layout: LTLayout, headerViewHandle handle: () -> UIView)
          1. 子控制器中g(shù)lt_scrollView進(jìn)行賦值
          self.glt_scrollView = self.tableView(self.scrollView / self.collectionView)
          1. 更多使用說明請參考Demo(LTScrollView / Example)

          OC使用說明

          OC.LTSimple使用說明

          1. 創(chuàng)建LTSimpleManager實(shí)例對象
          [[LTSimpleManager alloc] initWithFrame:frame viewControllers:self.viewControllers titles:self.titles currentViewController:self layout:self.layout]
          1. 設(shè)置headerView
          [self.managerView configHeaderView:^UIView * _Nullable{ }]
          1. 子控制器中g(shù)lt_scrollView進(jìn)行賦值
          self.glt_scrollView = self.tableView(self.scrollView / self.collectionView)
          1. 更多使用說明請參考Demo(LTScrollView / OCExample)

          OC.LTAdvanced使用說明

          1. 創(chuàng)建LTAdvancedManager實(shí)例對象、并設(shè)置headerView
           [[LTAdvancedManager alloc] initWithFrame:frame viewControllers:self.viewControllers titles:self.titles currentViewController:self layout:self.layout headerViewHandle:^UIView * _Nonnull{}]
          1. 子控制器中g(shù)lt_scrollView進(jìn)行賦值
          self.glt_scrollView = self.tableView(self.scrollView / self.collectionView)
          1. 更多使用說明請參考Demo(LTScrollView / OCExample)

          LTLayout屬性說明

          詳情查看LTLayout.swift

          瀏覽 30
          點(diǎn)贊
          評論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報
          評論
          圖片
          表情
          推薦
          點(diǎn)贊
          評論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  国产亚洲视频在线 | 老太色HD色老太HD-百度 无码专区一区二区三区 | 亚洲最大免费在线播放视频 | 青春草原现在免费观看 | 操逼逼视频|