forked from good-life/PushTalk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
YuanQiang
committed
Mar 5, 2013
1 parent
631756c
commit e974add
Showing
8 changed files
with
118 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+6.95 KB
(110%)
...eproj/project.xcworkspace/xcuserdata/ryanliang.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// | ||
// InfoDetailViewController.h | ||
// PushTalk | ||
// | ||
// Created by yuanqiang on 13-3-5. | ||
// Copyright (c) 2013年 Jpush. All rights reserved. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
@interface InfoDetailViewController : UIViewController { | ||
UILabel *_infoLabel; | ||
UILabel *_tokenLabel; | ||
UILabel *_udidLabel; | ||
NSString *_info; | ||
} | ||
|
||
-(id)initWithInfo:(NSString *)info; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
// | ||
// InfoDetailViewController.m | ||
// PushTalk | ||
// | ||
// Created by yuanqiang on 13-3-5. | ||
// Copyright (c) 2013年 Jpush. All rights reserved. | ||
// | ||
|
||
#import "InfoDetailViewController.h" | ||
#import "AppDelegate.h" | ||
|
||
@implementation InfoDetailViewController | ||
|
||
- (id)initWithInfo:(NSString *)info { | ||
self = [super init]; | ||
|
||
if (self) { | ||
_info = [info retain]; | ||
} | ||
|
||
return self; | ||
} | ||
|
||
- (void)viewDidLoad { | ||
[super viewDidLoad]; | ||
[self.view setBackgroundColor:[UIColor blackColor]]; | ||
|
||
_infoLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 40, 320, 100)]; | ||
[_infoLabel setBackgroundColor:[UIColor clearColor]]; | ||
[_infoLabel setTextColor:[UIColor colorWithRed:0.5 green:0.65 blue:0.75 alpha:1]]; | ||
[_infoLabel setFont:[UIFont boldSystemFontOfSize:20]]; | ||
[_infoLabel setTextAlignment:UITextAlignmentCenter]; | ||
[_infoLabel setNumberOfLines:0]; | ||
[_infoLabel setText:_info]; | ||
[self.view addSubview:_infoLabel]; | ||
|
||
_tokenLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 150, 320, 32*3)]; | ||
[_tokenLabel setBackgroundColor:[UIColor clearColor]]; | ||
[_tokenLabel setTextColor:[UIColor colorWithRed:0.5 green:0.7 blue:0.75 alpha:1]]; | ||
[_tokenLabel setFont:[UIFont systemFontOfSize:14]]; | ||
[_tokenLabel setTextAlignment:UITextAlignmentCenter]; | ||
[_tokenLabel setNumberOfLines:3]; | ||
|
||
AppDelegate *app = (AppDelegate *)[[UIApplication sharedApplication] delegate]; | ||
NSString *deviceToken = [app deviceToken]; | ||
|
||
[_tokenLabel setText:[NSString stringWithFormat:@"Device Token: %@", deviceToken]]; | ||
[self.view addSubview:_tokenLabel]; | ||
|
||
_udidLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 290, 320, 24)]; | ||
[_udidLabel setBackgroundColor:[UIColor clearColor]]; | ||
[_udidLabel setTextColor:[UIColor colorWithRed:0.5 green:0.7 blue:0.75 alpha:1]]; | ||
[_udidLabel setFont:[UIFont systemFontOfSize:18]]; | ||
[_udidLabel setTextAlignment:UITextAlignmentCenter]; | ||
[_udidLabel setText:[NSString stringWithFormat:@"UDID: %@", [APService openUDID]]]; | ||
[self.view addSubview:_udidLabel]; | ||
} | ||
|
||
- (void)dealloc { | ||
[_tokenLabel release]; | ||
[_infoLabel release]; | ||
[_udidLabel release]; | ||
[_info release]; | ||
|
||
[super dealloc]; | ||
} | ||
|
||
|
||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters