テキストフィールドにテキストをより具体的に配置したいと思います。
私の現在のコード:
UITextField * textFieldIndustry = [[UITextField alloc] initWithFrame:CGRectMake(10, 10, 465, 68)];
textFieldIndustry.font = [UIFont systemFontOfSize:17.0];
textFieldIndustry.placeholder = @"Tap to..";
textFieldIndustry.textAlignment = NSTextAlignmentCenter;
このコード:
textFieldIndustry.textAlignment = NSTextAlignmentCenter;
テキストを中央に配置しますが、必要な場所に正確には配置しません。たとえば、X & Y を使用して配置するにはどうすればよいですか?