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">
|
||||
</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
|
||||
|
||||
@@ -126,18 +126,17 @@
|
||||
// 打印收到的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];
|
||||
NSString *str = [[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding];
|
||||
|
||||
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"推送内容"
|
||||
message:str
|
||||
delegate:nil
|
||||
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];
|
||||
otherButtonTitles:@"点击查看",nil];
|
||||
[alert show];
|
||||
|
||||
}
|
||||
@@ -146,7 +145,6 @@
|
||||
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"];
|
||||
|
||||
Reference in New Issue
Block a user