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 iOS app, you sometimes need to simulate memory warning notification to test your iOS app in high memory pressure condition. Xcode simulator just provide such a tool for you to trigger memory warning notification. Then you can test your source code in ViewController class’s didReceiveMemoryWarning function. This article will tell you how …

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 provide you several ways to specify the build output directory location. It can be a unique sub folder or a shared sub folder in Xcode derived data directory ( in this case all the Xcode projects use …

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 below error messages. The error message said unable to login with current apple account, and no profiles for the project were found. You can find the error message by click the project name in left Xcode project navigator pane, then click one …

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 »