[view.subviews makeObjectsPerformSelector:@selector(removeFromSuperview)];
- (void)tableView:(UITableView *)tableView willDisplayHeaderView:(nonnull UIView *)view forSection:(NSInteger)section
step1: 導入頭文件, #import <objc/runtime.h> static NSString *keyOfTarget; step2: 創建button 添加方法runtime方法 UIButton *btn =
* 屏幕邊緣側滑返回上一頁是因爲響應了self.navigationController的interactivePopGestureRecognizer手勢; * 返回失效的原因主要是UIPanGestureRecognizer與inte
目錄 方法1:Runtime Attributes 方法2:使用@IBInspectable(下面以UIButton爲例介紹使用方法) Step1:創建一個UIButton分類(Category)UIButton+Layer Step2:
使用方法網上很多不贅訴,只說注意事項,不做會崩潰 1、 storyboard中動態Cell所在的section中必須預留一個Cell,可以是任意一個Cell; 2、 - (NSInteger)tableView:(UITableView
想要達到視圖從屏幕上邊緣就開始顯示怎麼做? 解決方案: 1、代碼 if (@available(iOS 11.0, *)) { self.tableView.contentInsetAdjustmentBehavior = U