Xcode

How To Set Application Root View Controller Programmatically In Xcode 11

When using Xcode 11 to create a new iOS project, if you still create the root view controller in AppDelegate class’s – func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool function as usual, you will find there is a compile time error which said Value of type ‘AppDelegate’ has no member ‘window’. And […]

How To Set Application Root View Controller Programmatically In Xcode 11 Read More »

How To Simulate Memory Warning In Xcode 10 iOS Simulator

When you develop an iOS app, you sometimes need to simulate memory warning notifications to test your iOS app in high memory pressure conditions. Xcode simulator just provides such a tool for you to trigger memory warning notifications. Then you can test your source code in ViewController class’s didReceiveMemoryWarning function. This article will tell you

How To Simulate Memory Warning In Xcode 10 iOS Simulator Read More »

How To Configure Xcode Default, Workspace, Project Build Directory Location

Xcode build directory is used to save iOS app binary files when you build your Xcode app. Xcode provides you several ways to specify the build output directory location. It can be a unique subfolder or a shared subfolder in Xcode derived data directory ( in this case all the Xcode projects use one build

How To Configure Xcode Default, Workspace, Project Build Directory Location Read More »

How To Fix Xcode Error The Operation Couldn’t Be Completed, Unable To Log In With Account. The Login Details For Account Were Rejected. And No Profiles Were Found

When I use Xcode 10.3 to open an old Xcode project, I encounter the below error messages. The error message said unable to log in with the current apple account, and no profiles for the project were found. You can find the error message by clicking the project name in the Xcode project left side

How To Fix Xcode Error The Operation Couldn’t Be Completed, Unable To Log In With Account. The Login Details For Account Were Rejected. And No Profiles Were Found Read More »

How To Connect Storyboard UI Component To ViewController Class Code

When we develop iOS app use Xcode, we design the app GUI ( graphical user interface ) in Main.storyboard file. And the swift source code is edited in ViewController.swift file. But how to use swift source code in ViewController.swift file to modify storyboard UI component’s attributes or process UI component’s action event? This article will

How To Connect Storyboard UI Component To ViewController Class Code Read More »