CGFloat top = 0;
CGFloat left = 0;
CGFloat bottom = 0;
CGFloat right = 0;
if ([UIScreen ff_screenSize].width == 375) {
top = 80;
left = 70;
bottom = 31;
self.titleLabel.font = [UIFont systemFontOfSize:18];
self.englishLabel.font = [UIFont systemFontOfSize:20];
self.introduceLabel.font = [UIFont systemFontOfSize:14];
right = 33;
}else if ([UIScreen ff_screenSize].width == 414){
bottom = 31;
top = 88;
left = 84;
right = 33;
}else if ([UIScreen ff_screenSize].width == 320){
self.titleLabel.font = [UIFont systemFontOfSize:16];
self.englishLabel.font = [UIFont systemFontOfSize:18];
self.introduceLabel.font = [UIFont systemFontOfSize:13];
self.introduceTop.constant = 8;
top = 70;
left = 44;
bottom = 24;
right = 28;
}
self.collectionButtonLeft.constant = right;
self.chineseLabelTop.constant = top;
self.introlduceLeft.constant = left;
self.collectionButtonbottom.constant = bottom;
[self.view setNeedsLayout];
@property (weak, nonatomic) IBOutlet UICountingLabel *tuitionLabel; weakSelf.tuitionLabel.text = self.tuitionForAcademyModel.tuition; NSInteger grade = [self.tuitionForAcademyModel.tuition integerValue]; weakSelf.tuitionLabel.format = @"%d%"; [weakSelf.tuitionLabel countFromZeroTo:grade];
- (void)configureContentLabelText
{
NSMutableAttributedString *attributedString = [[NSMutableAttributedString alloc]initWithString:@"Label"];
long number = 5;
CFNumberRef num = CFNumberCreate(kCFAllocatorDefault,kCFNumberSInt8Type,&number);
[attributedString addAttribute:(id)kCTKernAttributeName value:(__bridge id)num range:NSMakeRange(0,[attributedString length])];
CFRelease(num);
self.label.attributedText = attributedString;
}
#import <UIKit/UIKit.h> @interface WXMainController : UITabBarController @end
#pragma mark -监听账号互踢,这时候先退出登录,然后回到首页
- (void)addNotification{
WS(weakSelf);
// [[NSNotificationCenter defaultCenter] postNotificationName:KMutualKickNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserverForName:KMutualKickNotification object:nil queue:nil usingBlock:^(NSNotification * _Nonnull note) {
[weakSelf alertWindow];
}];
}
#pragma mark-弹出框选择界面
- (void)alertWindow{
if (!self.isShow) {
self.isShow = YES;
UIAlertView *alter = [[UIAlertView alloc] initWithTitle:@"" message:@"您的账号已在其他设备登录,现在您已经处于退出登录状态" delegate:self cancelButtonTitle:@"确定" otherButtonTitles:nil];
[alter show];
}
}
#pragma mark-弹出框选择界面的代理方法,点击确定就弹出登录框
- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex{
if (buttonIndex == 0) {
WXLoginController * loginController = [WXLoginController showLoginContoller:NO andIsShowColse:NO];
[self presentViewController:loginController animated:YES completion:nil];
self.isShow = NO;
}
}
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有