Swift

How To Fix Xcode Not Automatically Creating Bridging Header File Issue

If you want to import objective-c class’s .h and .m file into swift project, Xcode will create an Objective-C Bridging Header file in the swift project automatically. But sometimes you will find it do not create the objective-c bridging header file, so you need to create and configure it manually. This article will tell you …

How To Fix Xcode Not Automatically Creating Bridging Header File Issue Read More »

How To Call Objective C Code From Swift Project

When you develop iOS app use swift, if you have some older function wrote by objective-c language, you can use Objective-C bridging header file to import your objective-c header files to the swift project. And then you can invoke the objective-c class function from your app’s swift code. This article will tell you how to …

How To Call Objective C Code From Swift Project Read More »

How To Add iOS App Icon, Image, Color Set To Xcode Project Assets Catalog Correctly

Xcode project organize project resource files use Asset Catalog. Each asset catalog can contain multiple asset sets, for example app icon set, image set, color set etc. When you create a Xcode project use one project template such as Single View App, it will create a default asset catalog file Assets.xcassets in the project files …

How To Add iOS App Icon, Image, Color Set To Xcode Project Assets Catalog Correctly Read More »

How To Create, Align And Wrap Label Text Programmatically In Swift iOS App

UIKit.UILabel class is used to create a label in iOS swift source code programmatically. You can change label text, label text color, label background color, label border width, label border color by setting it’s properties. You can also change the label text alignment by change UILabel object’s textAlignment property value t0 NSTextAlignment.left, NSTextAlignment.center or NSTextAlignment.right. You …

How To Create, Align And Wrap Label Text Programmatically In Swift iOS App Read More »