细节修改

This commit is contained in:
wu736139669
2015-06-28 20:24:29 +08:00
parent 135146c6c9
commit 4f0309e659
2 changed files with 6 additions and 24 deletions
@@ -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
+6 -8
View File
@@ -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"];