Skip to content

Commit 9b98cce

Browse files
committed
【iOS】3D touch 快捷发冒泡,发完不能立即更新到冒泡列表
1 parent ea914bc commit 9b98cce

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

Coding_iOS/AppDelegate.m

+7
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,13 @@ - (void)application:(UIApplication *)application performActionForShortcutItem:(U
460460
[nextTweet saveSendData];//发送前保存草稿
461461
[[Coding_NetAPIManager sharedManager] request_Tweet_DoTweet_WithObj:nextTweet andBlock:^(id data, NSError *error) {
462462
if (data) {
463+
if ([[BaseViewController presentingVC] respondsToSelector:NSSelectorFromString(@"refresh")]) {
464+
#pragma clang diagnostic push
465+
#pragma clang diagnostic ignored "-Warc-performSelector-leaks"
466+
[[BaseViewController presentingVC] performSelector:NSSelectorFromString(@"refresh")];
467+
#pragma clang diagnostic pop
468+
469+
}
463470
[Tweet deleteSendData];//发送成功后删除草稿
464471
}
465472
}];

Coding_iOS/Coding_iOS-Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
</dict>
3737
</array>
3838
<key>CFBundleVersion</key>
39-
<string>4.2.201701200930</string>
39+
<string>4.2.201701201700</string>
4040
<key>ITSAppUsesNonExemptEncryption</key>
4141
<false/>
4242
<key>LSApplicationQueriesSchemes</key>

Coding_iOS/Controllers/RootControllers/Tweet_RootViewController.h

+2
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,6 @@ typedef NS_ENUM(NSUInteger, Tweet_RootViewControllerType){
2121

2222
@interface Tweet_RootViewController : BaseViewController<UITableViewDataSource, UITableViewDelegate, UIScrollViewDelegate, UIMessageInputViewDelegate>
2323
+ (instancetype)newTweetVCWithType:(Tweet_RootViewControllerType)type;
24+
25+
- (void)refresh;
2426
@end

0 commit comments

Comments
 (0)