My project is based on the development of swift do, already published in the appstore, when the time to do development projects with a swift tight schedule did not write a blog. We are now recall, do the next record, to help those students with a swift or intend to study with the swift. I do Android, ios later completed the development of projects in the company's trust and help of friends. Interested can look at my article reviewed and recommendations on the swift
Summary of the IOS, swift development of
The following describes the bridge no bullshit
Most developers use oc ios development, of course, also make swift advantage of fast development. oc is swift and mixed-use development called each other. Of course, this needs to be done bridge. It is what I want to say today. Of course, I'm in my " summary of IOS, swift development is also mentioned bridge" blog.
First create .h file named Swift-OC-Bridge
build setting in the project target -> Swift Compiler-General -> Objective-C Bridging Header will create a file directory is set up above
Double-click the input window will be displayed, drag the file into the bridge, you will be able to associate a path inside. It will take effect
// Created by 张志宏 on 2018/6/4.
// Copyright © 2018年 TangTuan. All rights reserved.
//
#import <Hyphenate/Hyphenate.h>
#import "EaseUI.h"
//#import "AFNetworking/AFNetworking.h"
#import "Qiniu/QiniuSDK.h"
#import "HappyDNS/HappyDNS.h"
#import "WXApi.h"
#import <AlipaySDK/AlipaySDK.h>
//#import "QYSDK.h"
#import <UMCommon/UMCommon.h>
#import <UMCommonLog/UMCommonLogHeaders.h>
#import <UMAnalytics/MobClick.h>
#import <UMPush/UMessage.h>
#import <UserNotifications/UserNotifications.h>
// U-Share核心SDK
#import <UMShare/UMShare.h>
// U-Share分享面板SDK,未添加分享面板SDK可将此行去掉
#import <UShareUI/UShareUI.h>
#import <AMapFoundationKit/AMapFoundationKit.h>
#import <AMapLocationKit/AMapLocationKit.h>
#import <AliyunOSSiOS/OSSService.h>
#import <StoreKit/StoreKit.h>
Then pour the integrated file. Note that when the project will be partly invalid after changing addresses. Only you need to re-associate the file path to the bridge