mirror of
https://github.com/wu736139669/Ash_AWord.git
synced 2026-08-05 05:55:19 +00:00
修改微信的 url scheme
This commit is contained in:
+38
-6
@@ -166,7 +166,7 @@
|
||||
<BreakpointProxy
|
||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||
<BreakpointContent
|
||||
shouldBeEnabled = "Yes"
|
||||
shouldBeEnabled = "No"
|
||||
ignoreCount = "0"
|
||||
continueAfterRunningActions = "No"
|
||||
filePath = "Ash_AWord/ViewControllers/My/MyRelateViewController.m"
|
||||
@@ -179,14 +179,14 @@
|
||||
landmarkType = "5">
|
||||
<Locations>
|
||||
<Location
|
||||
shouldBeEnabled = "Yes"
|
||||
shouldBeEnabled = "No"
|
||||
ignoreCount = "0"
|
||||
continueAfterRunningActions = "No"
|
||||
symbolName = "-[MyRelateViewController tableView:didSelectRowAtIndexPath:]"
|
||||
moduleName = "Ash_AWord"
|
||||
usesParentBreakpointCondition = "Yes"
|
||||
urlString = "file:///Users/xmfish/Documents/Ash_Soft/Ash_AWord/Ash_AWord/ViewControllers/My/MyRelateViewController.m"
|
||||
timestampString = "457175650.116421"
|
||||
timestampString = "457176239.877602"
|
||||
startingColumnNumber = "9223372036854775807"
|
||||
endingColumnNumber = "9223372036854775807"
|
||||
startingLineNumber = "152"
|
||||
@@ -194,14 +194,14 @@
|
||||
offsetFromSymbolStart = "236">
|
||||
</Location>
|
||||
<Location
|
||||
shouldBeEnabled = "Yes"
|
||||
shouldBeEnabled = "No"
|
||||
ignoreCount = "0"
|
||||
continueAfterRunningActions = "No"
|
||||
symbolName = "__60-[MyRelateViewController tableView:didSelectRowAtIndexPath:]_block_invoke"
|
||||
moduleName = "Ash_AWord"
|
||||
usesParentBreakpointCondition = "Yes"
|
||||
urlString = "file:///Users/xmfish/Documents/Ash_Soft/Ash_AWord/Ash_AWord/ViewControllers/My/MyRelateViewController.m"
|
||||
timestampString = "457175650.116595"
|
||||
timestampString = "457176239.878171"
|
||||
startingColumnNumber = "9223372036854775807"
|
||||
endingColumnNumber = "9223372036854775807"
|
||||
startingLineNumber = "152"
|
||||
@@ -214,7 +214,7 @@
|
||||
<BreakpointProxy
|
||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||
<BreakpointContent
|
||||
shouldBeEnabled = "Yes"
|
||||
shouldBeEnabled = "No"
|
||||
ignoreCount = "0"
|
||||
continueAfterRunningActions = "No"
|
||||
filePath = "Ash_AWord/ViewControllers/My/MyRelateViewController.m"
|
||||
@@ -467,5 +467,37 @@
|
||||
landmarkType = "5">
|
||||
</BreakpointContent>
|
||||
</BreakpointProxy>
|
||||
<BreakpointProxy
|
||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||
<BreakpointContent
|
||||
shouldBeEnabled = "Yes"
|
||||
ignoreCount = "0"
|
||||
continueAfterRunningActions = "No"
|
||||
filePath = "Ash_AWord/AppDelegate.m"
|
||||
timestampString = "457177104.347518"
|
||||
startingColumnNumber = "9223372036854775807"
|
||||
endingColumnNumber = "9223372036854775807"
|
||||
startingLineNumber = "131"
|
||||
endingLineNumber = "131"
|
||||
landmarkName = "-didReceiveRemoteNotification:"
|
||||
landmarkType = "5">
|
||||
</BreakpointContent>
|
||||
</BreakpointProxy>
|
||||
<BreakpointProxy
|
||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||
<BreakpointContent
|
||||
shouldBeEnabled = "Yes"
|
||||
ignoreCount = "0"
|
||||
continueAfterRunningActions = "No"
|
||||
filePath = "Ash_AWord/AppDelegate.m"
|
||||
timestampString = "457177104.347518"
|
||||
startingColumnNumber = "9223372036854775807"
|
||||
endingColumnNumber = "9223372036854775807"
|
||||
startingLineNumber = "146"
|
||||
endingLineNumber = "146"
|
||||
landmarkName = "-application:didReceiveRemoteNotification:fetchCompletionHandler:"
|
||||
landmarkType = "5">
|
||||
</BreakpointContent>
|
||||
</BreakpointProxy>
|
||||
</Breakpoints>
|
||||
</Bucket>
|
||||
|
||||
+35
-7
@@ -14,8 +14,11 @@
|
||||
#import "MobClick.h"
|
||||
#import "MainViewController.h"
|
||||
#import "EaseMob.h"
|
||||
@interface AppDelegate ()
|
||||
|
||||
#import "PersonalInfoViewController.h"
|
||||
@interface AppDelegate ()<UIAlertViewDelegate>
|
||||
{
|
||||
NSString* _otherUserId;
|
||||
}
|
||||
@end
|
||||
|
||||
@implementation AppDelegate
|
||||
@@ -24,11 +27,7 @@
|
||||
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
|
||||
// Override point for customization after application launch.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
_otherUserId = nil;
|
||||
application.applicationIconBadgeNumber = 0;
|
||||
|
||||
if([application respondsToSelector:@selector(registerUserNotificationSettings:)])
|
||||
@@ -127,6 +126,8 @@
|
||||
// 打印收到的apns信息
|
||||
-(void)didReceiveRemoteNotification:(NSDictionary *)userInfo
|
||||
{
|
||||
[MBProgressHUD errorHudWithView:nil label:@"hha" hidesAfter:1.0];
|
||||
|
||||
NSError *parseError = nil;
|
||||
NSData *jsonData = [NSJSONSerialization dataWithJSONObject:userInfo
|
||||
options:NSJSONWritingPrettyPrinted error:&parseError];
|
||||
@@ -140,6 +141,33 @@
|
||||
[alert show];
|
||||
|
||||
}
|
||||
- (void)application:(UIApplication*)application didReceiveRemoteNotification:(NSDictionary*)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler
|
||||
{
|
||||
NSError *parseError = nil;
|
||||
NSData *jsonData = [NSJSONSerialization dataWithJSONObject:userInfo
|
||||
options:NSJSONWritingPrettyPrinted error:&parseError];
|
||||
NSString *str = [[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding];
|
||||
|
||||
NSString* info = [[userInfo objectForKey:@"aps"] objectForKey:@"alert"];
|
||||
_otherUserId = [userInfo objectForKey:@"f"];
|
||||
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"收到消息"
|
||||
message:info
|
||||
delegate:self
|
||||
cancelButtonTitle:NSLocalizedString(@"ok", @"OK")
|
||||
otherButtonTitles:@"点击查看",nil];
|
||||
[alert show];
|
||||
|
||||
}
|
||||
-(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex
|
||||
{
|
||||
if (buttonIndex == 1 && _otherUserId && ![_otherUserId isEqualToString:@""]) {
|
||||
|
||||
PersonalInfoViewController* personalInfoViewController = [[PersonalInfoViewController alloc] initWithNibName:@"PersonalInfoViewController" bundle:nil];
|
||||
personalInfoViewController.hidesBottomBarWhenPushed = YES;
|
||||
personalInfoViewController.otherUserId = _otherUserId;
|
||||
[[AppDelegate visibleViewController].navigationController pushViewController:personalInfoViewController animated:YES];
|
||||
}
|
||||
}
|
||||
- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url
|
||||
{
|
||||
return [UMSocialSnsService handleOpenURL:url];
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
<string>weixin</string>
|
||||
<key>CFBundleURLSchemes</key>
|
||||
<array>
|
||||
<string>wx8fbd37e4da758bbd</string>
|
||||
<string>wx557ac33ef4304d7c</string>
|
||||
</array>
|
||||
</dict>
|
||||
<dict>
|
||||
|
||||
Reference in New Issue
Block a user