| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611 |
- //
- // MOGuildApplyVC.m
- // MiMoLive
- //
- // Created by SuperC on 2023/10/26.
- //
- #import "MOGuildApplyVC.h"
- #import "MOGuildInputBaseCell.h"
- #import "MOGuildImageOrTextBaseCell.h"
- #import "MOGuildImageArrCell.h"
- #import "MOImagePickerController.h"
- #import "MOSelectPartitionVC.h"
- #import "MOUserGuild.h"
- #import "MOGuildNewInputCell.h"
- #import "MOGuildPhoneNumCell.h"
- #import "MOGuildAppInfoCell.h"
- #import "MOGuildRequireInfoCell.h"
- #import "MOGuildSureCell.h"
- #import "UIImage+YYAdd.h"
- #define AvatarIndexPathRow 5
- #define AnchorPhotosIndexPathRow 6
- #define ApplyBtnPathRow 8
- @interface MOGuildApplyVC ()<UITableViewDelegate,UITableViewDataSource,TZImagePickerControllerDelegate>
- @property (weak, nonatomic) IBOutlet UIImageView *bgImgView;
- @property (weak, nonatomic) IBOutlet UITableView *tableView;
- #pragma mark - 请求参数
- @property (nonatomic, copy) NSString *guildNameString;
- @property (nonatomic, copy) NSString *phoneCodeString;
- @property (nonatomic, copy) NSString *phoneNumString;
- @property (nonatomic, copy) NSString *whatsAppString;
- @property (nonatomic, copy) NSString *anchorNumString;
- @property (nonatomic, copy) NSString *otherAppNameString;
- @property (nonatomic, copy) NSString *otherAppImgString;
- /** 图片展示数组 */
- @property (nonatomic, strong) NSMutableArray *showArr;
- /** 是否是进行选择头像操作 */
- @property (nonatomic, assign) BOOL isAvatarPicker;
- @property (nonatomic, assign) NSInteger imgNum;
- @property (nonatomic, assign) BOOL applyBtnCanClick;
- @end
- @implementation MOGuildApplyVC
- - (void)viewWillAppear:(BOOL)animated
- {
- [super viewWillAppear:animated];
- [self.navigationController setNavigationBarHidden:NO animated:animated];
-
- [self mo_v2_setNavLeftItemWithImage:[UIImage imageNamed:@"v_2_icon_new_back_black"] andBackgroundImg:nil AndBgColor:nil];
- }
- - (void)viewDidLoad {
- [super viewDidLoad];
- // Do any additional setup after loading the view from its nib.
-
- self.navigationItem.title = NSLocalString(@"mimo_guild_set_in");
-
- [self setupUI];
-
- self.isAvatarPicker = NO;
- self.imgNum = 0;
-
- if(self.isApply){
- [self getApplyInfo];
- }
- }
- - (void)getApplyInfo{
- WEAKSELF
- [kHttpManager toGuildApplyAuditingWithParams:nil andBlock:^(id _Nonnull data, NSError * _Nonnull error) {
- if(kCode_Success){
- MOLogV(@"%@",[[NSString alloc] initWithData:[NSJSONSerialization dataWithJSONObject:data options:0 error:nil] encoding:NSUTF8StringEncoding]);
- MOUserGuild *baseData = [MOUserGuild modelWithJSON:data[@"data"]];
- [weakSelf updataUIWith:baseData];
- }
- else{
- MOLogV(@"getApplyInfo 接口报错了");
- kShowNetError(data)
- }
- }];
- }
- - (void)updataUIWith:(MOUserGuild *)baseModel{
- self.guildNameString = baseModel.name;
- self.otherAppImgString = baseModel.logo;
- self.anchorNumString = [NSString stringWithFormat:@"%.f",baseModel.anchorNum];
-
- NSMutableArray *tempArr = [NSMutableArray array];
- for (NSString *object in baseModel.pictures) {
- MOMineItemModel *itemModel = [[MOMineItemModel alloc] init];
- itemModel.placeholderImgString = @"";
- itemModel.imgString = object;
- [tempArr addObject:itemModel];
- }
-
- self.showArr = [tempArr copy];
- [self.tableView reloadData];
-
-
- }
- - (void)toUpdateTheApplyBtnStatus{
- //申请中
- if(self.isApply){
- return;
- }
-
- if(self.guildNameString.length > 0 &&
- self.phoneNumString.length > 0 &&
- self.whatsAppString.length > 0){
- self.applyBtnCanClick = YES;
- }
- else{
- self.applyBtnCanClick = NO;
- }
-
- NSIndexPath *applyIndexPath = [NSIndexPath indexPathForRow:ApplyBtnPathRow inSection:0];
- [self.tableView reloadRowsAtIndexPaths:@[applyIndexPath] withRowAnimation:UITableViewRowAnimationNone];
- }
- - (void)applyBtnClick:(id)sender {
-
- if(self.isApply){
- //审核中
- [self toShowTipView];
- return;
- }
-
- if(self.guildNameString.length == 0){
- [MBProgressHUD showTipMessageInView:NSLocalString(@"mimo_guild_guild_name_invalide")];
- return;
- }
-
- if(self.anchorNumString.length == 0){
- self.anchorNumString = @"0";
- }
-
- NSInteger anchorNum = [self.anchorNumString integerValue];
-
- NSMutableArray *pictureArr = [NSMutableArray array];
- for (MOMineItemModel *imgModel in self.showArr) {
- if(imgModel.isAddBtn == NO){
- [pictureArr addObject:imgModel.imgString];
- }
- }
-
- if(self.phoneNumString.length == 0){
- [MBProgressHUD showTipMessageInWindow:NSLocalString(@"mimo_guild_set_req_phone_tip")];
- return;
- }
-
- if(self.whatsAppString.length == 0){
- [MBProgressHUD showTipMessageInWindow:NSLocalString(@"mimo_guild_set_req_whatsapp_tip")];
- return;
- }
-
-
- NSDictionary *mobileDict = @{@"num":self.phoneNumString,
- @"code":self.phoneCodeString};
-
- NSMutableDictionary *theReqDict = [NSMutableDictionary dictionary];
- [theReqDict setObject:self.guildNameString forKey:@"name"];
- [theReqDict setObject:mobileDict forKey:@"mobile"];
- [theReqDict setObject:self.whatsAppString forKey:@"whatsApp"];
-
- if(anchorNum > 0){
- [theReqDict setObject:@(anchorNum) forKey:@"anchorNum"];
- }
-
- if(self.otherAppNameString.length > 0){
- [theReqDict setObject:self.otherAppNameString forKey:@"otherApp"];
- }
-
- if(self.otherAppImgString.length > 0){
- [theReqDict setObject:self.otherAppImgString forKey:@"otherProve"];
- }
-
- if(pictureArr.count > 0){
- [theReqDict setObject:pictureArr forKey:@"pictures"];
- }
-
- WEAKSELF
- [kHttpManager theGuild2ToApplySubmit2WithParams:theReqDict andBlock:^(id _Nonnull data, NSError * _Nonnull error) {
- if(kCode_Success){
- [MBProgressHUD showTipMessageInView:NSLocalString(@"mimo_common_success")];
- [weakSelf toShowTipView];
- }
- else{
- kShowNetError(data)
- }
- }];
-
- }
- - (void)toShowTipView{
- WEAKSELF
- MOTitleNormalAlertView *alertView = [[MOTitleNormalAlertView alloc] init];
- alertView.titleLabel.text = NSLocalString(@"mimo_alert_normal_tip");
- alertView.subTitleLabel.text = NSLocalString(@"mimo_guild_set_req_success_tip");
- alertView.isSingleBtn = YES;
- alertView.isStrongBg = YES;
- [alertView.confirmBtn setTitle:NSLocalString(@"mimo_TipPleaseConfirm") forState:UIControlStateNormal];
- alertView.confirmBlock = ^{
- [weakSelf toRootVC];
- };
- [alertView show];
- }
- - (void)toRootVC{
- [self.navigationController popToRootViewControllerAnimated:YES];
- }
- - (void)showCardType{
- NSMutableArray *dataArr = [NSMutableArray array];
-
- NSDictionary *createDict = @{@"title":@"Bank Card"
- };
- [dataArr addObject:createDict];
-
- NSDictionary *setDict = @{@"title":@"Dana"
- };
- [dataArr addObject:setDict];
-
- NSDictionary *ruleDict = @{@"title":@"GCash"
- };
- [dataArr addObject:ruleDict];
-
- MOImageTitleAlertView *alertView = [[MOImageTitleAlertView alloc] initForOperateSuccessWithFrame:CGRectMake(0.0, 0.0, SCREENWIDTH, SCREENHEIGHT) ViewType:MOOnlyTextCellType DataArray:dataArr];
- WEAKSELF
- alertView.cellClickBlock = ^(NSInteger index) {
- [weakSelf.tableView reloadData];
- };
-
- [alertView show];
- }
- #pragma mark - UITableViewDelegate,UITableViewDataSource
- - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{
- return 1;
- }
- - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
- return 9.0;
- }
- - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
- if(indexPath.row == AnchorPhotosIndexPathRow){
- CGFloat cellHeight = [MOGuildImageArrCell getCellHeightWithDataArrCount:self.showArr.count];
- return cellHeight;
- }
- if(indexPath.row == AvatarIndexPathRow){
- return kScaleWidth(192.0);
- }
- else if (indexPath.row == 4){
- return 112.0;
- }
- else if (indexPath.row == 7){
- return 160.0;
- }
- else if (indexPath.row == ApplyBtnPathRow){
- return 80.0;
- }
- else{
- return 82.0;
- }
- }
- - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
- UITableViewCell *baseCell = nil;
- switch (indexPath.row) {
- case 0:
- {
- //Guild Name
- MOGuildNewInputCell *cell = [tableView dequeueReusableCellWithIdentifier:MOGuildNewInputCell_ID];
- cell.titleLab.text = NSLocalString(@"mimo_guild_set_name");
- cell.isHaveRedTip = YES;
- cell.inputTxf.text = self.guildNameString;
- WEAKSELF
- cell.returnTxFText = ^(NSString * _Nonnull txfString) {
- weakSelf.guildNameString = txfString;
- [weakSelf toUpdateTheApplyBtnStatus];
- };
- cell.bgView.layer.cornerRadius = 16.0;
- cell.bgView.layer.masksToBounds = YES;
- cell.bgView.layer.maskedCorners = kCALayerMinXMinYCorner | kCALayerMaxXMinYCorner;
- baseCell = cell;
- }
- break;
- case 1:
- {
- //Phone Num
- MOGuildPhoneNumCell *cell = [tableView dequeueReusableCellWithIdentifier:MOGuildPhoneNumCell_ID];
- cell.titleLab.text = NSLocalString(@"mimo_guild_set_phone_num");
- cell.inputTxf.text = self.phoneNumString;
- [cell.codeBtn setTitle:self.phoneCodeString forState:UIControlStateNormal];
- [cell toCheckHaveRedTip];
- WEAKSELF
- cell.returnTxFText = ^(NSString * _Nonnull txfString) {
- weakSelf.phoneNumString = txfString;
- [weakSelf toUpdateTheApplyBtnStatus];
- };
- cell.getCodeBlock = ^{
- //获取国际区号
- MOSelectPartitionVC *vc = [[MOSelectPartitionVC alloc] init];
- //MARK: 选择区号回调
- vc.selectCellBlock = ^(MOCountryList * _Nonnull model) {
- weakSelf.phoneCodeString = model.num;
- [weakSelf.tableView reloadData];
- };
- [weakSelf.navigationController pushViewController:vc animated:YES];
- };
-
- baseCell = cell;
-
- }
- break;
- case 2:
- {
- //WhatsApp
- MOGuildNewInputCell *cell = [tableView dequeueReusableCellWithIdentifier:MOGuildNewInputCell_ID];
- cell.titleLab.text = NSLocalString(@"mimo_guild_set_whatsapp");
- cell.isHaveRedTip = YES;
- cell.inputTxf.text = self.whatsAppString;
- [cell toCheckHaveRedTip];
- WEAKSELF
- cell.returnTxFText = ^(NSString * _Nonnull txfString) {
- weakSelf.whatsAppString = txfString;
- [weakSelf toUpdateTheApplyBtnStatus];
- };
- cell.bgView.layer.cornerRadius = 0.0;
- cell.bgView.layer.masksToBounds = YES;
- cell.bgView.layer.maskedCorners = kCALayerMinXMinYCorner | kCALayerMaxXMinYCorner;
- baseCell = cell;
- }
- break;
- case 3:
- {
- //旗下主播数量
- MOGuildNewInputCell *cell = [tableView dequeueReusableCellWithIdentifier:MOGuildNewInputCell_ID];
- cell.titleLab.text = NSLocalString(@"mimo_guild_set_anchor_num");
- cell.isHaveRedTip = NO;
- cell.inputTxf.text = self.anchorNumString;
- [cell toCheckHaveRedTip];
- WEAKSELF
- cell.returnTxFText = ^(NSString * _Nonnull txfString) {
- weakSelf.anchorNumString = txfString;
- };
- cell.bgView.layer.cornerRadius = 0.0;
- cell.bgView.layer.masksToBounds = YES;
- cell.bgView.layer.maskedCorners = kCALayerMinXMinYCorner | kCALayerMaxXMinYCorner;
- baseCell = cell;
- }
- break;
- case 4:
- {
- //其他APP合作经验
- MOGuildNewInputCell *cell = [tableView dequeueReusableCellWithIdentifier:MOGuildNewInputCell_ID];
- cell.titleLab.text = NSLocalString(@"mimo_guild_set_other_app_tip_one");
- cell.bottomTipLab.text = NSLocalString(@"mimo_guild_set_other_app_tip_two");
- cell.isHaveRedTip = NO;
- cell.inputTxf.text = self.otherAppNameString;
- WEAKSELF
- cell.returnTxFText = ^(NSString * _Nonnull txfString) {
- weakSelf.otherAppNameString = txfString;
- };
- cell.bgView.layer.cornerRadius = 16.0;
- cell.bgView.layer.masksToBounds = YES;
- cell.bgView.layer.maskedCorners = kCALayerMinXMaxYCorner | kCALayerMaxXMaxYCorner;
- baseCell = cell;
- }
- break;
- case AvatarIndexPathRow:
- {
- //其他APP合作经验图片
- MOGuildAppInfoCell *cell = [tableView dequeueReusableCellWithIdentifier:MOGuildAppInfoCell_ID];
- cell.titleLab.text = NSLocalString(@"mimo_guild_set_other_app_tip_three");
- cell.tipLab.text = NSLocalString(@"mimo_guild_set_other_app_tip_four");
- [cell.theImg sd_setImageWithURL:[NSURL URLWithString:self.otherAppImgString] placeholderImage:[[UIImage imageNamed:@"icon_wish_add"] imageByTintColor:[MOTools colorWithHexString:@"#878A99" alpha:1.0]]];
- WEAKSELF
- cell.imgClickBlock = ^{
- __strong typeof(weakSelf) self = weakSelf;
- MOImagePickerController *imagePickerController = [[MOImagePickerController alloc] initWithMaxImagesCount:1 columnNumber:4 delegate:self pushPhotoPickerVc:YES];
- self.isAvatarPicker = YES;
- [self presentViewController:imagePickerController animated:YES completion:nil];
- };
- baseCell = cell;
- }
- break;
- case AnchorPhotosIndexPathRow:
- {
- //Upload Anchor Photos
- MOGuildImageArrCell *cell = [tableView dequeueReusableCellWithIdentifier:MOGuildImageArrCell_ID];
- if (cell == nil){
- cell = [[MOGuildImageArrCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:MOGuildImageArrCell_ID];
- }
-
- cell.showArr = [self.showArr copy];
-
- WEAKSELF
- //MARK: 相册选择
- cell.itemBlock = ^(MOMineItemModel * _Nonnull model) {
-
- __strong typeof(weakSelf) self = weakSelf;
- MOImagePickerController *imagePickerController = [[MOImagePickerController alloc] initWithMaxImagesCount:(15 - self.showArr.count) columnNumber:4 delegate:self pushPhotoPickerVc:YES];
- self.isAvatarPicker = NO;
- [self presentViewController:imagePickerController animated:YES completion:nil];
- };
-
- cell.deleteImgBlock = ^(NSIndexPath * _Nonnull cellIndexPath) {
- //内部cell
- [weakSelf.showArr removeObjectAtIndex:cellIndexPath.row];
-
- //外部刷新
- NSIndexPath *indexPathNew = [NSIndexPath indexPathForRow:AnchorPhotosIndexPathRow inSection:0];
- [weakSelf.tableView reloadRowsAtIndexPaths:@[indexPathNew] withRowAnimation:UITableViewRowAnimationNone];
- };
-
- baseCell = cell;
- }
- break;
- case 7:
- {
- //申请要求
- MOGuildRequireInfoCell *cell = [tableView dequeueReusableCellWithIdentifier:MOGuildRequireInfoCell_ID];
- baseCell = cell;
- }
- break;
- case ApplyBtnPathRow:
- {
- MOGuildSureCell *cell = [tableView dequeueReusableCellWithIdentifier:MOGuildSureCell_ID];
- if (cell == nil){
- cell = [[MOGuildSureCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:MOGuildSureCell_ID];
- }
-
- cell.isApply = self.isApply;
- cell.canClick = self.applyBtnCanClick;
-
- WEAKSELF
- cell.applyBtnClickBlcok = ^{
- [weakSelf applyBtnClick:nil];
- };
-
- baseCell = cell;
- }
- break;
- default:
- {
- MOGuildInputBaseCell *cell = [tableView dequeueReusableCellWithIdentifier:MOGuildInputBaseCell_ID];
- baseCell = cell;
- }
- break;
- }
-
- return baseCell;
- }
- - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
- [tableView deselectRowAtIndexPath:indexPath animated:YES];
- }
- - (void)imagePickerController:(TZImagePickerController *)picker didFinishPickingPhotos:(NSArray<UIImage *> *)photos sourceAssets:(NSArray *)assets isSelectOriginalPhoto:(BOOL)isSelectOriginalPhoto infos:(NSArray<NSDictionary *> *)infos{
-
- self.imgNum = photos.count;
-
- [MBProgressHUD showActivityMessageInView:@""];
-
- for (UIImage *selectImg in photos) {
- [self uploadBgImgWith:selectImg];
- }
- }
- - (void)uploadBgImgWith:(UIImage *)image{
- NSDictionary *dict = @{@"type":@(1),
- @"suffix":@"jpg"};
-
- WEAKSELF
- [kHttpManager getBaseOssS3WithParams:dict andBlock:^(id _Nonnull data, NSError * _Nonnull error) {
- if(kCode_Success){
- NSDictionary *tempDict = data[@"data"];
-
- NSString *baseUrl = [MODataManager objectOrNilForKey:@"preSignUrl" fromDictionary:tempDict];
-
- NSString *bgImgUrl = [MODataManager objectOrNilForKey:@"fileUrl" fromDictionary:tempDict];
-
- NSData *imageData = UIImageJPEGRepresentation(image, 0.4);
-
- [kHttpManager sendSingleChatImage:imageData params:nil type:@"image/jpg" andBaseUrl:baseUrl withUploadProgressHandler:^(NSProgress * uploadProgress) {
- float progress = 1.0*uploadProgress.completedUnitCount/uploadProgress.totalUnitCount;
- MOLogV(@"Image upload Progress: %.2f%%", progress * 100);
- } andCompletionBlock:^(id _Nonnull data, NSError * _Nonnull error) {
-
- weakSelf.imgNum = weakSelf.imgNum - 1;
-
- if(error == nil){
- MOLogV(@"图片上传成功~");
-
- if(weakSelf.isAvatarPicker){
- //选择工会头像
- weakSelf.otherAppImgString = bgImgUrl;
- NSIndexPath *indexPathNew = [NSIndexPath indexPathForRow:AvatarIndexPathRow inSection:0];
- [weakSelf.tableView reloadRowsAtIndexPaths:@[indexPathNew] withRowAnimation:UITableViewRowAnimationNone];
- }
- else{
-
- //选择主播照片
- if(weakSelf.showArr.count == 15){
- MOMineItemModel *lastModel = weakSelf.showArr.lastObject;
- if(lastModel.isAddBtn){
- [weakSelf.showArr removeObject:lastModel];
- }
- }
-
- MOMineItemModel *itemModel = [[MOMineItemModel alloc] init];
- itemModel.placeholderImgString = @"";
- itemModel.imgString = bgImgUrl;
-
- [weakSelf.showArr insertObject:itemModel atIndex:(weakSelf.showArr.count - 1)];
-
- NSIndexPath *indexPathNew = [NSIndexPath indexPathForRow:AnchorPhotosIndexPathRow inSection:0];
- [weakSelf.tableView reloadRowsAtIndexPaths:@[indexPathNew] withRowAnimation:UITableViewRowAnimationNone];
- }
- }
- }];
- }
- else{
- kShowNetError(data)
- weakSelf.imgNum = weakSelf.imgNum - 1;
- }
- }];
- }
- - (void)setImgNum:(NSInteger)imgNum{
- _imgNum = imgNum;
-
- if(imgNum == 0){
- [MBProgressHUD hideHUD];
- }
- }
- #pragma mark - Set UI
- - (void)setupUI{
-
- self.guildNameString = @"";
- self.phoneCodeString = @"+62";
- self.phoneNumString = @"";
- self.whatsAppString = @"";
- self.anchorNumString = @"";
- self.otherAppNameString = @"";
- self.otherAppImgString = @"";
-
- NSArray *colorArr = @[[MOTools colorWithHexString:@"#F3F4FA" alpha:1.0],[MOTools colorWithHexString:@"#F3F4FA" alpha:1.0]];
- UIImage *image = [MOTools createGradientRectImageWithBounds:CGRectMake(0, 0, SCREENWIDTH, (SCREENHEIGHT - NAV_BAR_HEIGHT)) Colors:colorArr GradientType:1];
- [self.bgImgView setImage:image];
-
- self.tableView.estimatedRowHeight = 0;
- self.tableView.estimatedSectionHeaderHeight = 0;
- self.tableView.estimatedSectionFooterHeight = 0;
-
- //iOS15适配
- if (@available(iOS 15.0, *))
- {
- self.tableView.sectionHeaderTopPadding = 0;
- }
- self.tableView.contentInset = UIEdgeInsetsMake(9, 0, 150, 0);
- [self.tableView registerNib:[UINib nibWithNibName:@"MOGuildInputBaseCell" bundle:nil] forCellReuseIdentifier:MOGuildInputBaseCell_ID];
- [self.tableView registerNib:[UINib nibWithNibName:@"MOGuildImageOrTextBaseCell" bundle:nil] forCellReuseIdentifier:MOGuildImageOrTextBaseCell_ID];
- [self.tableView registerClass:[MOGuildImageArrCell class] forCellReuseIdentifier:MOGuildImageArrCell_ID];
-
- [self.tableView registerNib:[UINib nibWithNibName:@"MOGuildNewInputCell" bundle:nil] forCellReuseIdentifier:MOGuildNewInputCell_ID];
- [self.tableView registerNib:[UINib nibWithNibName:@"MOGuildPhoneNumCell" bundle:nil] forCellReuseIdentifier:MOGuildPhoneNumCell_ID];
- [self.tableView registerNib:[UINib nibWithNibName:@"MOGuildAppInfoCell" bundle:nil] forCellReuseIdentifier:MOGuildAppInfoCell_ID];
- [self.tableView registerNib:[UINib nibWithNibName:@"MOGuildRequireInfoCell" bundle:nil] forCellReuseIdentifier:MOGuildRequireInfoCell_ID];
- [self.tableView registerClass:[MOGuildSureCell class] forCellReuseIdentifier:MOGuildSureCell_ID];
-
- self.tableView.showsVerticalScrollIndicator = NO;
-
- MOMineItemModel *addModel = [[MOMineItemModel alloc] init];
- addModel.placeholderImgString = @"icon_guild_new_add";
- addModel.isAddBtn = YES;
- [self.showArr addObject:addModel];
-
- [self.tableView reloadData];
-
- [self toUpdateTheApplyBtnStatus];
- }
- - (NSMutableArray *)showArr{
- if(!_showArr){
- _showArr = [NSMutableArray array];
- }
-
- return _showArr;
- }
- @end
|