Is there anyway we can take input from command line in Objective-C, the way we can take in C/C++?
int inputVariableName;
cin >> inputVariableName;
scanf("%i", userInput);
just as you would in c
To get Objective-C objects from the input, simple convert them after reading them in:
NSNumber * number = [nsnumber numberwithint:useriput];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With