相关疑难解决方法(0)

目标c检查文本字段是否为空

这是代码:

- (IBAction) charlieInputText:(id)sender {
    //getting value from text field when entered
    charlieInputSelf = [sender stringValue];

    if (charlieInputSelf != @"") {
        //(send field if not empty
    }
}    
Run Code Online (Sandbox Code Playgroud)

即使字段为空,也会发送它; 因此,这不符合我的要求.

variables xcode objective-c nstextfield

36
推荐指数
3
解决办法
6万
查看次数

标签 统计

nstextfield ×1

objective-c ×1

variables ×1

xcode ×1