這聽起來是非常小的問題,但我堅持:(TSMessage - 額外的參數「形象」呼叫
我使用TSMessage在迅速「呼叫額外的參數‘形象’」得到錯誤是什麼?錯
func showActionNotification(title:String?, message:String?, viewcontroller:UIViewController, actionTitle:NSString, action:(()->Void)) -> Void {
var image:UIImage! = UIImage(named: "Sample.png")
TSMessage.showNotificationInViewController(viewcontroller,
title: title, subtitle: message, image: image,
type: TSMessageNotificationType.Message,
duration: TSMessageNotificationDuration.Automatic,
callback: nil, buttonTitle: actionTitle, buttonCallback: action,
atPosition: TSMessageNotificationPosition.Top, canBeDismissedByUser: true)
}
感謝
你是如何得到它在Swift中工作的? –
@ScottZhu我添加了橋接頭並在那裏導入了頭文件。 – iMemon