Today is September 8, another practice day. I got up very late today, some slack. Maybe a little bit more about the rest of the day, people get a little lazy. And like back to the former lazy look. Perhaps the recent computer watching too much of the total feeling the eyes are very astringent. Lazy people are always more things, for themselves to find a variety of excuses.
But try to solve the problem by yourself. Force yourself to keep trying. It was not until late this afternoon that I began to enter the state. reviewed the array and string of the days before the teacher. The more you review, the more you find that you forget more. Hopefully, over time, I won't be able to keep up.
Finally, the following part of the review is recorded:
Determine if an object is contained in an array
if ([Names containsobject:@ " Zhao Liu "]) {
NSLog (@ " contains Zhao Liu ");
}Else NSLog(@ " does not contain ");
Convenience arrays
Nsarray *stringarray=[nsarray arraywithobjects:@ "One", @ "one", @ "three", nil];
Method 1
for (int i=0;i<stringarray.count;i++) {
NSString *n =[stringarray objectatindex:i];
}
Method 2 ( Use when you don't need to use the position in the array)
For(nsstring *n in Stringarray) {
}
Lan Yi Education September 8 record