objective c - How to use '||' in if-else statement in iphone appllication? -
if((([txtfldo1.text length] == 0 ) || ([txtfldo2.text length] == 0 ) || ([txtfldo3.text length] == 0 ) || ([txtfldo4.text length] == 0 ) || ([txtfldo5.text length] == 0 )) && (([txtfldr1.text length]== 0) || ([txtfldr2.text length]== 0) || ([txtfldr3.text length]== 0) || ([txtfldr4.text length]== 0) || ([txtfldr5.text length]== 0))) { //alert //return }
this statement not work. access of propeties. tell me why? need access 1 txtfldo , 1 txtfldr.
to access properties, try self
self.txtfld00.text.length
Comments
Post a Comment