-
Book Overview & Buying
-
Table Of Contents
Learning iOS Penetration Testing
By :
While creating Xcode project, you must have observed different files, such as storyboard, controller, and so on as shown in following screenshot. The iOS applications are based on the Model-View-Controller (MVC) design. This concept is really useful while performing dynamic analysis of an iOS application:

Following is a high-level diagram of the MVC design. It mainly has three components such as Model, View, and Controller. View and Model always communicate via Controller.

Let's take a sample application as shown in the following that takes user input as password, checks with the backend value, and displays whether the password is correct or incorrect.
Remember, View and Model do not communicate directly, they work via Controller. The following is the UI part of application that is nothing but View of application:

NSString *password = [NSStringstringWithFormat:@"secret_password"];
Here secret_password is hardcoded value that is nothing but Model.

Now, if the data entered in View matches with the data in Model, then the message will be displayed as follows:

So, if you have observed, all communication happens through Controller. Now you are proficient with some basics about iOS developments. Let's study iOS security concepts from basics.
Change the font size
Change margin width
Change background colour