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
The text was updated successfully, but these errors were encountered:
// ====================== ZJ添加:修正xib控件显示角标位置不正确问题 ======================
// ====================== end ======================
Sorry, something went wrong.
(void)load { [super load]; Method m1 = class_getInstanceMethod(self, @selector(layoutSubviews)); Method m2 = class_getInstanceMethod(self, @selector(zj_layoutSubviews)); method_exchangeImplementations(m1, m2); } (void)zj_layoutSubviews { [self zj_layoutSubviews]; self.badge.center = CGPointMake(CGRectGetWidth(self.frame) + 2 + self.badgeCenterOffset.x, self.badgeCenterOffset.y); }
(void)load { [super load]; Method m1 = class_getInstanceMethod(self, @selector(layoutSubviews)); Method m2 = class_getInstanceMethod(self, @selector(zj_layoutSubviews)); method_exchangeImplementations(m1, m2); }
(void)zj_layoutSubviews { [self zj_layoutSubviews]; self.badge.center = CGPointMake(CGRectGetWidth(self.frame) + 2 + self.badgeCenterOffset.x, self.badgeCenterOffset.y); }
请问这个是写在哪个方法里面呢?
No branches or pull requests
CustomTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"CustomTableViewCell" forIndexPath:indexPath];
[cell.avator showBadge];
return cell;
}
The text was updated successfully, but these errors were encountered: