We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug 表现 1、使用 Xcode11 编译 (iOS 13 SDK) 2、将一个带有标题的 UIButton 设置给 UITableViewCell 的 accessoryView,按钮在 cell 中的 frame 错误,而如果没有标题就不会有这个问题
截图
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { return 2; } - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *identifier = @"cell"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:identifier]; if (!cell) { cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:identifier]; UIButton *button = [UIButton buttonWithType:UIButtonTypeSystem]; button.backgroundColor = [UIColor lightGrayColor]; button.bounds = CGRectMake(0, 0, 100, 30); if (indexPath.row == 1) { [button setTitle:@"ButtonTitle" forState:UIControlStateNormal]; } cell.accessoryView = button; } return cell; }
The text was updated successfully, but these errors were encountered:
该问题已经在 iOS 13.1 beta2 被苹果修复
Sorry, something went wrong.
No branches or pull requests
Bug 表现
1、使用 Xcode11 编译 (iOS 13 SDK)
2、将一个带有标题的 UIButton 设置给 UITableViewCell 的 accessoryView,按钮在 cell 中的 frame 错误,而如果没有标题就不会有这个问题
截图
![image](https://user-images.githubusercontent.com/16473618/64273843-bd43bd80-cf74-11e9-9216-ae12792753a5.png)
The text was updated successfully, but these errors were encountered: