初学oc 感觉方法很多很乱,怎么记,有没有资料整合在一起,求资料!!!!万分感激哦
滿天的星座2017-04-28 09:07:01
It is unreliable to regard documents or what you call integrated materials as tutorials.
1. The documents are too complicated and include too many things, and you will not be able to remember them even after reading them. 2. Technology is frequently updated and iterated. , you just finished reading the old version and maybe there is a new version (oc is quite stable, but swift is a bit buggy)
My personal approach is:
For example, if we want to push an object into NSMutableArray, assuming we don’t know how to push at this time, we can make some attempts,
//注意这里是尝试,事实objc并没有这个方法,于是发现push没有相关提示
[array push];
Then try another word, such as add
//尝试
[array add]
//发现有提示
[array addObject:...];
So we know that pushing an object to the array in oc is [array addObject:...]
5. I really can’t guess, Baidu, Google.
6. There is nothing you can do about the search engine. Ask in the group, ask in the community, look for official documents and take a closer look, etc.
曾经蜡笔没有小新2017-04-28 09:07:01
Don’t xcode have automatic prompts? Can solve some memory problems
Be good at using baidu or google
Use more and write more, and you will naturally remember it