mirror of
https://github.com/wahyd4/libr-ios.git
synced 2026-08-08 21:02:39 +10:00
#61 分享成功提示
This commit is contained in:
@@ -106,11 +106,11 @@ class ShareViewController: SLComposeServiceViewController, SizeDelegate {
|
||||
}
|
||||
|
||||
sharedDefaults!.synchronize()
|
||||
self.extensionContext!.completeRequestReturningItems([], completionHandler: nil)
|
||||
self.view.makeToast("分享成功", duration:2.0, position: CSToastPositionCenter)
|
||||
}else{
|
||||
// self.view.makeToast("Libr说:‘您还没登录应用~’", duration:3.0, position: CSToastPositionCenter)
|
||||
NSTimer.scheduledTimerWithTimeInterval(2.0, target: self, selector: Selector("dismiss"), userInfo: nil, repeats: false)
|
||||
self.view.makeToast("Libr说:‘您还没登录应用~’", duration:3.0, position: CSToastPositionCenter)
|
||||
}
|
||||
NSTimer.scheduledTimerWithTimeInterval(2.0, target: self, selector: Selector("dismiss"), userInfo: nil, repeats: false)
|
||||
|
||||
}
|
||||
|
||||
@@ -131,7 +131,7 @@ class ShareViewController: SLComposeServiceViewController, SizeDelegate {
|
||||
}
|
||||
|
||||
func dismiss() {
|
||||
self.extensionContext!.completeRequestReturningItems([], completionHandler: nil)
|
||||
self.doneWithResults(nil)
|
||||
}
|
||||
|
||||
func getShareType(type: String) -> String {
|
||||
|
||||
Reference in New Issue
Block a user