Advertise here




Advertise here

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Google Sign In with OpenID
Please do not post the same thing multiple times. The board software automatically flags certain posts as needing moderator attention. This happens the most often for new users. I'm pretty sure this is made clear at the time you attempt to post. Posting the same thing over and over again just makes that many more posts the moderators have to weed through later. This makes us sad. Don't make us sad. If your post/thread doesn't appear, just wait a while. Don't post it again. If it hasn't shown up by the next day, then you can try again. I normally go through posts in the mornings, and try to check a few times throughout the day, but I'm not here 24/7. There will typically be a significant delay before posts are approved. Just be patient.

iPhone App with text field and output of info. Help, it's urgent.

Hi,
I am new to the iOS. I need to create an App that entering into two text fields (1 and 2) two different codes (A and AA), give me an output in a label.

in the first text field you must enter a code A, which corresponds to a single code (AA). I want once you click the OK button, the app compares the code in between those in it and in case of mismatch gives an error message in the label or allert (such as a switch in C). In the case A is a code present, pass to compare the code A to AA (such as a IF in C). In the case of non-correspondence gives an error message in label or allert. In case of a match just give a "messageA" assigned to the combination of codes A and AA in label1( such as a PRINT in C).

In my app there are about 1000 codes of type A which correspond to 1000 codes AA. For each combination corresponds to a "messageA".

Example1 (exact match)

text field 1) John
text field 2) 85671

press OK

label1) blah blah blah



Example2 (exact match)



text field 1) Mark
text field 2) 98435

press OK

label1) bujd fuvhdchu udchuhcdjckd


Example3 (not exact match)



text field 1) Mark
text field 2) 15482

press OK

allert) Error text field 2

Example4 (Sean does not exist)



text field 1) Sean
text field 2) 45328

press OK

allert) Error text field 1



P.S. i use xcode 4

and sorry for my english :)
Post edited by Gipek992 on

Replies

Sign In or Register to comment.