aboutView draft

This commit is contained in:
TrueZhuanjia
2025-07-17 22:46:56 +08:00
parent db6906d7a4
commit ba453f9405
8 changed files with 212 additions and 1 deletions
@@ -1342,13 +1342,23 @@ static NSMutableSet* hostList;
button.frame = CGRectMake(0, 0, buttonHeight, buttonHeight);
// 添加点击事件
// [button addTarget:self action:@selector(addDeviceTapped) forControlEvents:UIControlEventTouchUpInside];
[button addTarget:self action:@selector(helpButtonTapped) forControlEvents:UIControlEventTouchUpInside];
// 创建 UIBarButtonItem
UIBarButtonItem *barItem = [[UIBarButtonItem alloc] initWithCustomView:button];
return barItem;
}
- (void)helpButtonTapped{
if (@available(iOS 13.0, *)) {
AboutViewController *aboutVC = [[AboutViewController alloc] init];
aboutVC.modalPresentationStyle = UIModalPresentationFormSheet;
[self presentViewController:aboutVC animated:YES completion:nil];
} else {
// Fallback on earlier versions
}
}
- (CGFloat)getStandardNavBarHeight{
return [self isIPhone] ? UINavigationBarHeightIPhone : UINavigationBarHeightIPad;
}