1234567891011121314151617181920212223 |
- //
- // UITableView+LoadPageIndex.m
- // HCQuanfangtong
- //
- // Created by qft_Ios_03 on 2018/4/25.
- // Copyright © 2018年 qft_Ios_03. All rights reserved.
- //
- #import "UITableView+LoadPageIndex.h"
- #import <objc/runtime.h>
- @implementation UITableView (LoadPageIndex)
- - (void)setPageIndex:(NSInteger)pageIndex{
- objc_setAssociatedObject(self, @"pageIndex", @(pageIndex), OBJC_ASSOCIATION_RETAIN);
- }
- - (NSInteger)pageIndex{
- return [objc_getAssociatedObject(self, @"pageIndex") integerValue];
- }
- @end
|