Can't find keyplane that supports type 4 for keyboard iPhone-PortraitChoco-NumberPad - Numbers become 'password dots'

تعرفه تبلیغات در سایت
عنوان عکس
عنوان عکس
عنوان عکس
عنوان عکس
عنوان عکس


یافته ها در جستجو

    امکانات وب

    آرشیو مطالب

    برچسب ها

    I've started making a very basic app, just using labels and text fields. My application was working completely fine and then it just started going weird. Whenever you click on a text field it should bring up the number pad for the phone. This works completely fine for the first input but the second input sometimes doesn't bring up the number pad, and when you do enter something and click off it, that text field just becomes 'password dots'. When clicking the button and the calculation is made, the result is also the 'password dots'. However when printing to the console, it recognises the correct output. The situation is the same whether running through the simulator or running through my phone after building it. I've attached some necessary code below.

    I would really appreciate some help, I'm very new to iOS development and see no reason for this error to be occurring. Thanks!


    @interface ViewController : UIViewController
    @property (weak, nonatomic) IBOutlet UILabel *deviceType;
    @property (weak, nonatomic) IBOutlet UILabel *iOSVersion;
    @property (weak, nonatomic) IBOutlet UITextField *num1Val;
    @property (weak, nonatomic) IBOutlet UITextField *num2Val;
    @property (weak, nonatomic) IBOutlet UITextField *answerVal;
    - (IBAction)addButtonPressed:(id)sender;


    - (IBAction)addButtonPressed:(id)sender {
    NSLog(@"Add Pressed");
    float num1 = [[self.num1Val text] floatValue];
    float num2 = [[self.num2Val text] floatValue];
    NSLog(@"Number 1: %f Number 2: %f", num1, num2);
    float answer = num1 + num2;
    NSLog(@"Answer: %f", answer);
    NSString *answerText = [NSString stringWithFormat:@"%f", answer];
    self.answerVal.text = answerText;
    نویسنده : استخدام کار بازدید : 0 تاريخ : يکشنبه 3 دی 1396 ساعت: 23:29
    برچسب‌ها :
    اخبار و رسانه هاهنر و ادبیاترایانه و اینترنتعلم و فن آوریتجارت و اقتصاداندیشه و مذهبفوتو بلاگوبلاگ و وبلاگ نویسیفرهنگ و تاریخجامعه و سیاستورزشسرگرمی و طنزشخصیخانواده و زندگیسفر و توریسمفارسی زبان در دیگر کشورهاads-123