cdts/xdts-ios 3/TreeHole/CYHResetCode/CYH/QMUIKit/QMUIComponents/QMUITableViewHeaderFooterView.h

54 lines
2.6 KiB
C
Raw Permalink Normal View History

2023-07-27 09:20:00 +08:00
/**
* Tencent is pleased to support the open source community by making QMUI_iOS available.
* Copyright (C) 2016-2021 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
* http://opensource.org/licenses/MIT
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
*/
//
// QMUITableViewHeaderFooterView.h
// QMUIKit
//
// Created by QMUI Team on 2017/12/7.
//
#import <UIKit/UIKit.h>
typedef NS_ENUM(NSUInteger, QMUITableViewHeaderFooterViewType) {
QMUITableViewHeaderFooterViewTypeUnknow,
QMUITableViewHeaderFooterViewTypeHeader,
QMUITableViewHeaderFooterViewTypeFooter
};
/**
* UITableView sectionHeaderFooterView
* 1. UILabel label
* 2. accessoryView accessoryView
* 3. headerFooterView padding
* 4.
*
* 使
* UITableViewHeaderFooterView 使
* 1. self-sizing UITableViewAutomaticDimension tableView:heightForHeaderInSection:tableView:heightForFooterInSection: headerFooterView sizeThatFits:
* 2. parentTableView type QMUICommonTableViewController parentTableView type
*/
@interface QMUITableViewHeaderFooterView : UITableViewHeaderFooterView
@property(nonatomic, weak) UITableView *parentTableView;
@property(nonatomic, assign) QMUITableViewHeaderFooterViewType type;
@property(nonatomic, strong, readonly) UILabel *titleLabel;
@property(nonatomic, strong) __kindof UIView *accessoryView;
@property(nonatomic, assign) UIEdgeInsets contentEdgeInsets;
@property(nonatomic, assign) UIEdgeInsets accessoryViewMargins;
@end
@interface QMUITableViewHeaderFooterView (UISubclassingHooks)
/// 子类重写,用于修改样式,会在 parentTableView、type 属性发生变化的时候被调用
- (void)updateAppearance;
@end