m anew comer to iPhone…before i have developed for Android..Could any one tell me what is the alternate code in objective C..Thanx in advance
Int projectNumber = Integer.parseInt(projectNumber.trim());
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
edit:
Just to explain a bit more..
If you have a NSString named projectNumber (ie. @” 4 “). You can make a new string with trimed whitespace infront of the string and after the string with
as you can see this replaces the trim() function
trimedProjectNumber would now be @”4″. If you want an integer representation of this string you do:
this replaces the parseInt..
I dont know java but i think this is what youre code does? If not explain what the java code does..