// // SetGenderViewController.m // TreeHole // // Created by mambaxie on 2022/4/24. // #import "SetGenderViewController.h" #import "SetNickNameViewController.h" #import "GenderPickerView.h" #import "SetLoginUserInfoViewController.h" @interface SetGenderViewController () @end @implementation SetGenderViewController - (NSString *)tipsContent { return @"只有一次选择机会,我们会为你推荐你喜欢的"; } - (NSString *)topImageName { return @"TH_login_gender_img"; } - (void)viewDidLoad { [super viewDidLoad]; GenderPickerView *genderPickerView = [GenderPickerView pickerViewWithMultiple:NO selectedArr:@[]]; genderPickerView.y = FIX_SIZE(55); [self.cardView addSubview:genderPickerView]; PYThemeButton *nextButton = [PYThemeButton nextButtonWithAction:^(UIButton * _Nonnull button) { SetLoginUserInfoViewController* infoVC = [[SetLoginUserInfoViewController alloc]init]; infoVC.gender_str = genderPickerView.selectedItems.firstObject; [PYAppService pushViewControllerAnimated:infoVC]; }]; dispatch_async(dispatch_get_main_queue(), ^{ [genderPickerView selectItemAtIndex:0]; }); nextButton.y = genderPickerView.bottom + FIX_SIZE(5); [self.cardView addSubview:nextButton]; } @end