Building a Simple Login Interface for iOS

This tutorial demonstrates how to create a basic login screen for iOS, similar to QQ's login interface. Application Entry Point The main.m file serves as the entry point for every iOS application. It initializes the UIApplication instance and sets up the app delegate. #import <UIKit/UIKit.h> #import "AppDelegate.h" int main(int ...

Posted on Sun, 09 Aug 2026 16:31:27 +0000 by r3n

Data Passing Between iOS View Controllers

This article explores the various methods for passing data between view controllers in iOS development, covering property-based approaches, delegate patterns, notifications, singletons, and closures. Environment Setup Before implementing data passing, set up the navigation hierarchy in the application delegate. The following code initializes th ...

Posted on Sun, 09 Aug 2026 16:19:37 +0000 by mfalomir

Creating Custom UIView Subclasses: Code-Based vs. XIB Approaches

When building iOS interfaces, it is common to encapsulate a block of UI elements into a reusable UIView subclass. This article covers the fundamentals of building custom views using both pure code and XIB files, along with the important differences in initialization that arise from each approach. Dseigning a Custom View in Code A well-designed ...

Posted on Fri, 24 Jul 2026 16:25:54 +0000 by shiflett

Building Custom iOS UI Components with XIB and Programmatic Layout

A custom UI component begins with an Interface Builder file. Start by creating a new file and selecting the User Interface category, then choose View. This generates a .xib file containing an empty view. Design your reusable interface within this .xib file. Ensure you connect the File's Owner's Class in the "Custom Class" section to t ...

Posted on Tue, 21 Jul 2026 16:57:35 +0000 by NYSiRacer

Managing iOS View Controllers: Instantiation, Navigation, and Data Flow

Creating a View Controller A view controller can be instantiated in several ways: // Programmatic instantiation let controllerA = ExampleController() // From a XIB file let controllerB = ExampleController(nibName: "ExampleController", bundle: nil) // From a storyboard let storyboard = UIStoryboard(name: "Dashboard", bundle ...

Posted on Sat, 09 May 2026 10:33:49 +0000 by ozPATT