Hi, a few months ago I had started learning Swift, but since I didn't understand where the NSString, NSArray classes, for example, came from, I stopped learning. Nowhere did I find the answer to my question, that's why I came here to ask them and ask if they would explain the following to me (I'm going to buy it with Java, because that's what I know):
1. What framework does Swift use? Which of all the frameworks is like Java with the Standard Edition (SE)? On the apple page they put the following:
From what I understand there are 5 frameworks... but within each of them there are more or what are they?
Another question, related to the same thing, when I use print()... what object am I using??? Which method instance or object is it?
You are confusing concepts. I will try to explain it to you in the simplest way possible:
For starters, Swift is not a framework but rather a programming language, just like Objective-C, Java, or C++. Well, having this clear, a framework is nothing more than a series of methods/functions written in a specific language to simplify tasks, either because they are repeated often or because it would be complex to implement them.
Well, what you show us in the images are nothing more than all the frameworks that it incorporates
iOS
so that you can develop applications for the platformiOS
. That is,MapKit
it allows you to interact with Apple maps,HealthKit
it allows you to see the health data of the mobile,UIKit
the interfaces, etc.About the classes that you mentioned,
NSString
or theyNSArray
are part of the frameworkFoundation
that is the basic framework that you will need to be able to do basic operations with strings, for example.And lastly, because you don't understand what a class is, don't get discouraged, go ahead and try to learn that on the Internet you have everything!