mirror of
https://github.com/wu736139669/Ash_AWord.git
synced 2026-08-05 05:55:19 +00:00
细节修改
This commit is contained in:
-16
@@ -467,22 +467,6 @@
|
|||||||
landmarkType = "5">
|
landmarkType = "5">
|
||||||
</BreakpointContent>
|
</BreakpointContent>
|
||||||
</BreakpointProxy>
|
</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
|
<BreakpointProxy
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
<BreakpointContent
|
<BreakpointContent
|
||||||
|
|||||||
@@ -126,18 +126,17 @@
|
|||||||
// 打印收到的apns信息
|
// 打印收到的apns信息
|
||||||
-(void)didReceiveRemoteNotification:(NSDictionary *)userInfo
|
-(void)didReceiveRemoteNotification:(NSDictionary *)userInfo
|
||||||
{
|
{
|
||||||
[MBProgressHUD errorHudWithView:nil label:@"hha" hidesAfter:1.0];
|
|
||||||
|
|
||||||
NSError *parseError = nil;
|
NSError *parseError = nil;
|
||||||
NSData *jsonData = [NSJSONSerialization dataWithJSONObject:userInfo
|
NSData *jsonData = [NSJSONSerialization dataWithJSONObject:userInfo
|
||||||
options:NSJSONWritingPrettyPrinted error:&parseError];
|
options:NSJSONWritingPrettyPrinted error:&parseError];
|
||||||
NSString *str = [[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding];
|
|
||||||
|
|
||||||
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"推送内容"
|
NSString* info = [[userInfo objectForKey:@"aps"] objectForKey:@"alert"];
|
||||||
message:str
|
_otherUserId = [userInfo objectForKey:@"f"];
|
||||||
delegate:nil
|
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"收到消息"
|
||||||
|
message:info
|
||||||
|
delegate:self
|
||||||
cancelButtonTitle:NSLocalizedString(@"ok", @"OK")
|
cancelButtonTitle:NSLocalizedString(@"ok", @"OK")
|
||||||
otherButtonTitles:nil];
|
otherButtonTitles:@"点击查看",nil];
|
||||||
[alert show];
|
[alert show];
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -146,7 +145,6 @@
|
|||||||
NSError *parseError = nil;
|
NSError *parseError = nil;
|
||||||
NSData *jsonData = [NSJSONSerialization dataWithJSONObject:userInfo
|
NSData *jsonData = [NSJSONSerialization dataWithJSONObject:userInfo
|
||||||
options:NSJSONWritingPrettyPrinted error:&parseError];
|
options:NSJSONWritingPrettyPrinted error:&parseError];
|
||||||
NSString *str = [[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding];
|
|
||||||
|
|
||||||
NSString* info = [[userInfo objectForKey:@"aps"] objectForKey:@"alert"];
|
NSString* info = [[userInfo objectForKey:@"aps"] objectForKey:@"alert"];
|
||||||
_otherUserId = [userInfo objectForKey:@"f"];
|
_otherUserId = [userInfo objectForKey:@"f"];
|
||||||
|
|||||||
Reference in New Issue
Block a user