Salaam! I am, Shah Hussain Bangash Represent Online Soft Teach Company while here I will share step-by-step coding programming languages. We Invite those students who want to learn programming languages then should join us of the following links. Thanks Contact Us: +923025593765 Email: onlinesoftteach@gmail.com .

Wednesday, May 15, 2019

/


Contents of Objective-C Course by Shah Hussain

- History + Registering + Xcode Installation + Object Create + Methods Creation + Class Methods + Instance methods + OB Data Types + Printing NSLog + Properties + Accessing Properties + Categories +  Array + Dictionary + IOS Files + ibAction & ibOutlet, ib Stands for Interface Builder + UI + 

------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------

IOS Apps Development History?

- Mobile Operating System Developed by Apple Inc + First release 2017 + Including iPad and iPhone Touch.  iPad first release 2010

Registering as an Apple Developer Account?

- Create Account & Fill the Account Register Form?

Xcode Installation & Interface Builder + Simulator?

- Interface & Implementation: these are very important to declare class

- Object Create OB:   MyClass * ObjectName = [[MyClass allocint];

- Methods Creation OB:   -(void)MethodName   

- Class Methods - Accessed without any objects, Variables, etc.

- Instance Methods: Can be accessed only after creating an object for a class. Memory Allocated to Instance Variable.  -(void)InstanceMethod

Important Data Type of Objective-C

- NSString + CGFloat + NSInteger + Bool

- Accessing Properties represents from dot ex self.myString =@"test";

- Array ----> NSMutableArray & NSArray Difference     Static & Dynamic

- Dictionary -----> NSMutableDictionary & NSDictionary 


- Node. JS for IOS & JavaScript + How to Upload Images or files to Node. JS + Creating Restful API with Node. JS + AFNetworking



IOS App Important Files 

1. AppDelegate.h ----> Inherits from UIResponder that handle IOS Events 

2. AppDelegate.m ----> No User-defined methods 

3. ViewController.h ----> Provide Fundamental View Management or Interface 

4. VIewController.m ----> Base class and implement Coding ----> ViewDidLoad 

5. ViewController.xib ------>  Design Interface

IOS Apps Development Contents of the Course

- Swift Basics + OOP Programming +  IOS Ecosystem + Controls + Methods + Strings + Outlets + Autolayout + Variables + Functions + Bug Fixes + Popups + 

- Notifications + Saving Data + User Interface + Score Tracking + App Store + Syling + Web Services Integrating + Database + Core Data + Frameworks + CoachTouch 

- CoachPods + Constants + AlertView + TableView + Custom TableView + Storyboard + Local & Global & Instance Varibales. 

- Clousers + Design Screens + Syles Labels * Images * Buttons * Sliders + Animations + Web View + Use Documentation of IOS Apps Development

- App Store + App Icons + Description + Libraries + Synthes + Firebase + Json Data

- Objective-C Developed 1980 + OB-C Popular through Apple to building IOS Operating System.

Q1: Interview Question: How do you Manage Memory in Objective-C?

Answer: Memory Allocation in Objective-C is done dynamically. Memory is Allocated during the runtime of any Program. For Allocating Memory in Objective-C, there are two ways. 

1. Manual Retain Release (MRR): In this type of memory management, memory is explicitly managed and all objects have kept a track of. It uses the reference counting model for keeping this track.

2 Automatic Reference Counting (ARC): Here they system capable of inserting an appropriate memory management method calls which are called the runtime.

Q2: What is Declared properties in Objective C?

Answer: Any Property which is to be used by declaring different instance variables by implementing the getter and setter methods which help to enforce encapsulation. There are three aspects to properties, Include the declaration, implementation, and access. Properties declared in any class, category and protocols. 

  • @propety(attributes......) type propertyname

  • It also has attributes which are optional.   1. Read-only: This property can only read and not written. 2. Read-Write: Enable reading and writing both. 3. Assign: Used in the implementation of any setter. 4. Retain: is sent to the property once it is assigned. 5. copy: retain this operation is also performed once the property is assigned.

  • Strong Simple defines ownership of the Object + Deallocation of the Object + Strong we use Parent of the Object. Increase Reference Count.
  • Retain is Use when we want to remove the previous value once new setter comes for the same object.
  • Atomic: is property is default in case of thread safety but can be overridden with nonatomic. An atomic attribute defines that, the property is thread safe and will always return a true value. Probability of a garbage value is very least.  Since its a thread-safe attribute so it takes a large time in execution than its competitor nonatomic.
  • NonAtomic: NonAtomic property is not thread safe and doesn’t guarantee a true result but it will always give a result. 

Q3: Is it possible to use ARC and Non-ARC doe together in a project?

Answer: Yes, a project can use both ARC and Non-ARC codes. When a project chooses Non-ARC codes then --fobj-arc compiler flag is set. This is ARC can be disabled for specific classes by using -fno-obc-arc. 

This entire process can be done by Xcode → Project→ Build Phase→ Compile Sources→ Double Click on the class and set the –fno-objc-arc.

Q4: What are the methods of using NSUL Connect?

Answer: A connection which received the response + A Connection which receives data + A connection which did finish on loading 

Q4: What is the protocol in Objective-C?

Answer: A Protocol is said to be a language feature which provides multiple inheritances in a language which has a single inheritance. Objective C mainly supports two protocols Formal Protocols are also known as Compiler Protocols and informal protocols also known as ad-hoc protocols. 

Q5: What is atomic and non-atomic in Objective C and which one is considered to be a default?

Answer: This method is used to specify the accessor methods which are atomic. The process which is being currently run is completed by the CPU before any other process accesses the variable. Non-Atomic is for the variables which are non-atomic. These are faster but no thread safe. 

Q6: Difference Between Storyboard & XIB

Q7: How to Create Attractive Interface Builder a Project?


Q8: What is MBProgressHUD & Cocoapods & cocoa touch? Library & Frameworks

Q9: Difference B/W Weak Outlet & Strong Outlet?

Q10: @Synthesize is the compiler will understand your property + Also generate getter and setter methods for your property.





Q11: What is the difference between Synchronous & Asynchronous Task?

Running Something on a Background Thread


- Answer: Synchronous waits until the task has completed Asynchronous: not waits

 ---> Key difference between synchronous and Synchronous, it implies that two things must occur at the same time, or alternatively, that one of them must wait until the other one catches up. Asynchronous, it means that the two things don't know or care when the other is happening.

Q12: What is made up of NSError Object?


AnswerThere are three parts of NSError object a domain, an error code, and user info dictionary. The domain is a string that identifies what categories of errors this error is coming from.

Q13: What is Enum or Enumerations?


Answer: Managing state, Enumerations define a finite number of states and can bundle associated values with each individual state, you can use them to model the state of your app and its internal processes.

Enum is a type that basically contains a group of related values in the same umbrella but case-less enum won't allow us to create an instance.

Q13: What is @synthesize in Objective-C?


AnswerSynthesize generates getter and setter methods for your property.


Swift Apps Development Contents of the Course

Day 1

Lecture 1 - Welcome to Swift & IOS 8 Apps in 31 Days

- Tutorial - Text Labels, Animations, Physics and Gestures 

- Tutorial - Troubleshooting Common Mistakes & Swift Q & A

Day 2

- Tutorial - Introduction - Xcode, UI Design, Auto Layout, and Code Playback

- Tutorial - Xcode Panels and Tabs

- Tutorial - Xcode App Flow 

- Tutorial - Get User Input with Text Fields

- Tutorial - Design the iPhone User Interface

- Tutorial - Connect the User Interface to Code 

- Tutorial - Parse Text String Input as Integer 

- Tutorial - Q&A - Common Problems and Video Downloads

- Tutorial - Code Exercise - Experiment with Double or Float Numbers

Day 3


- Tutorial - Xcode Debugger & Breakpoints, Playgrounds, And Feedback


- Tutorial - Add an Images to Playgrounds and UIVIew iPhone Screens


- Tutorial - Troubleshooting Playgrounds


Day 4


- Tutorial - Introduction to Variables and Types 


- Tutorial - var and let Keywords


- Tutorial - Strings and Characters

- Tutorial - Int and Double Numbers

- Tutorial - Create the Calculator User Interface (UI)

- Tutorial - Tip Math Logic & Funding Methods & Currency Number


0 comments:

Post a Comment

Popular Posts

Who I am?

Software Engg Shah Hussain Bangash represents onlinesoftteach.com. Furthermore, where I will share advanced level technologies solutions. Shah Hussain basically belongs to District Hangu in Peshawar Pakistan. As a software engineer, I have worked on different technologies and platforms in software companies. First of all, my objective is to practice my knowledge to build my professional career by learning from experts. I developed many projects for Freelancer & UpWork clients. Hence various programming language, which I will explain below and write the project names.