Authored by 盖剑秋

New file for secret.

... ... @@ -169,6 +169,7 @@
2ED76ACF1D2F449B00562235 /* libiconv.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 2ED76ACE1D2F449B00562235 /* libiconv.tbd */; };
2EEAD4BE1D112D04003EE0E9 /* GCDAsyncSocket.m in Sources */ = {isa = PBXBuildFile; fileRef = 2EEAD4BB1D112D04003EE0E9 /* GCDAsyncSocket.m */; };
2EEAD4BF1D112D04003EE0E9 /* GCDAsyncSocket+SocketHandler.m in Sources */ = {isa = PBXBuildFile; fileRef = 2EEAD4BD1D112D04003EE0E9 /* GCDAsyncSocket+SocketHandler.m */; };
2EFAE0AA1D740EDD00D489BD /* YH_RoomSecretViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 2EFAE0A91D740EDD00D489BD /* YH_RoomSecretViewController.m */; };
31CCA53A1D26138700ADF9F0 /* M16HUDUtil.m in Sources */ = {isa = PBXBuildFile; fileRef = 31CCA5391D26138700ADF9F0 /* M16HUDUtil.m */; };
31CCA53D1D2613D800ADF9F0 /* UIViewAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = 31CCA53C1D2613D800ADF9F0 /* UIViewAdditions.m */; };
A09B25771CE57CAF00E68E28 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A09B25761CE57CAF00E68E28 /* SystemConfiguration.framework */; };
... ... @@ -460,6 +461,8 @@
2EEAD4BB1D112D04003EE0E9 /* GCDAsyncSocket.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GCDAsyncSocket.m; sourceTree = "<group>"; };
2EEAD4BC1D112D04003EE0E9 /* GCDAsyncSocket+SocketHandler.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "GCDAsyncSocket+SocketHandler.h"; sourceTree = "<group>"; };
2EEAD4BD1D112D04003EE0E9 /* GCDAsyncSocket+SocketHandler.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "GCDAsyncSocket+SocketHandler.m"; sourceTree = "<group>"; };
2EFAE0A81D740EDD00D489BD /* YH_RoomSecretViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = YH_RoomSecretViewController.h; sourceTree = "<group>"; };
2EFAE0A91D740EDD00D489BD /* YH_RoomSecretViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = YH_RoomSecretViewController.m; sourceTree = "<group>"; };
31CCA5341D26111D00ADF9F0 /* DimensMacros.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DimensMacros.h; sourceTree = "<group>"; };
31CCA5371D26133100ADF9F0 /* YohoLive.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = YohoLive.pch; sourceTree = SOURCE_ROOT; };
31CCA5381D26138700ADF9F0 /* M16HUDUtil.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = M16HUDUtil.h; sourceTree = "<group>"; };
... ... @@ -592,6 +595,8 @@
2E2E2D7B1D0E8BD90067D118 /* NSString+M16String.m */,
2E4D5FC01D057C6100D508BB /* YH_RootViewController.h */,
2E4D5FC11D057C6100D508BB /* YH_RootViewController.m */,
2EFAE0A81D740EDD00D489BD /* YH_RoomSecretViewController.h */,
2EFAE0A91D740EDD00D489BD /* YH_RoomSecretViewController.m */,
2E5FA88F1D06D2FD00920FB4 /* YH_ChannelModel.h */,
2E5FA8901D06D2FD00920FB4 /* YH_ChannelModel.m */,
31CCA53B1D2613D800ADF9F0 /* UIViewAdditions.h */,
... ... @@ -1005,7 +1010,6 @@
TargetAttributes = {
EF14E52A1C884C71002F1BEF = {
CreatedOnToolsVersion = 7.2.1;
DevelopmentTeam = 6U82P566A4;
SystemCapabilities = {
com.apple.BackgroundModes = {
enabled = 1;
... ... @@ -1235,6 +1239,7 @@
2EB66FF81D18EF2F00E91AAE /* MTLManagedObjectAdapter.m in Sources */,
2E487B0D1D66B05F009DBB6D /* YH_H5URLProtocol.m in Sources */,
2EB66FFB1D18EF2F00E91AAE /* MTLReflection.m in Sources */,
2EFAE0AA1D740EDD00D489BD /* YH_RoomSecretViewController.m in Sources */,
2E487AD71D66AA94009DBB6D /* NSMutableArray+QueueAdditions.m in Sources */,
2EB66FA71D18EEB100E91AAE /* YH_BarrageModel.m in Sources */,
2EB66FB71D18EEC700E91AAE /* YH_BarrageTableView.m in Sources */,
... ... @@ -1391,9 +1396,9 @@
"$(PROJECT_DIR)/YohoLive/yoho/Vendors/Zine",
"$(PROJECT_DIR)/YohoLive/yoho/Vendors/Zipzap",
);
PRODUCT_BUNDLE_IDENTIFIER = cn.yoho.live.ent;
PRODUCT_BUNDLE_IDENTIFIER = com.kennaki.live;
PRODUCT_NAME = YohoLive;
PROVISIONING_PROFILE = "a054e3fc-ce5a-4cd0-a13b-21f70ebeab79";
PROVISIONING_PROFILE = "";
USER_HEADER_SEARCH_PATHS = ./YohoLive/TXRTMPSDK.framework/Headers;
VALID_ARCHS = "arm64 armv7 armv7s i386";
};
... ... @@ -1542,9 +1547,9 @@
"$(PROJECT_DIR)/YohoLive/yoho/Vendors/Zine",
"$(PROJECT_DIR)/YohoLive/yoho/Vendors/Zipzap",
);
PRODUCT_BUNDLE_IDENTIFIER = cn.yoho.live.ent;
PRODUCT_BUNDLE_IDENTIFIER = com.kennaki.live;
PRODUCT_NAME = YohoLive;
PROVISIONING_PROFILE = "a054e3fc-ce5a-4cd0-a13b-21f70ebeab79";
PROVISIONING_PROFILE = "";
USER_HEADER_SEARCH_PATHS = ./YohoLive/TXRTMPSDK.framework/Headers;
VALID_ARCHS = "arm64 armv7 armv7s i386";
};
... ... @@ -1604,9 +1609,9 @@
"$(PROJECT_DIR)/YohoLive/yoho/Vendors/Zine",
"$(PROJECT_DIR)/YohoLive/yoho/Vendors/Zipzap",
);
PRODUCT_BUNDLE_IDENTIFIER = cn.yoho.live.ent;
PRODUCT_BUNDLE_IDENTIFIER = com.kennaki.live;
PRODUCT_NAME = YohoLive;
PROVISIONING_PROFILE = "a054e3fc-ce5a-4cd0-a13b-21f70ebeab79";
PROVISIONING_PROFILE = "";
USER_HEADER_SEARCH_PATHS = ./YohoLive/TXRTMPSDK.framework/Headers;
VALID_ARCHS = "arm64 armv7 armv7s i386";
};
... ...
//
// YH_RoomSecretViewController.h
// YohoLive
//
// Created by 盖剑秋 on 16/8/29.
// Copyright © 2016年 YOHO!. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface YH_RoomSecretViewController : UIViewController
+ (void)showInController:(UIViewController *)aController completionBlock:(void(^)(NSDictionary *dic, BOOL success))block;
- (void)setCompletionBlock:(void(^)(NSDictionary *dic, BOOL success))block;
@end
... ...
//
// YH_RoomSecretViewController.m
// YohoLive
//
// Created by 盖剑秋 on 16/8/29.
// Copyright © 2016年 YOHO!. All rights reserved.
//
#import "YH_RoomSecretViewController.h"
@implementation YH_RoomSecretViewController
{
void (^completionBlock)(NSDictionary *dic, BOOL success);
}
+ (void)showInController:(UIViewController *)aController completionBlock:(void (^)(NSDictionary *, BOOL))block {
YH_RoomSecretViewController *ctrler = [YH_RoomSecretViewController new];
[ctrler setCompletionBlock:block];
[aController.view addSubview:ctrler.view];
[aController addChildViewController:ctrler];
}
- (instancetype)init {
if (self = [super init]) {
}
return self;
}
- (void)viewDidLoad {
[super viewDidLoad];
self.view.backgroundColor = [UIColor colorWithWhite:0 alpha:0];
UIView *bg = [UIView new];
[self.view addSubview:bg];
bg.frame = CGRectMake(0, 0, 280, 250);
bg.center = self.view.center;
CGRect frame = bg.frame;
frame.origin.y = 170;
bg.frame = frame;
UILabel *titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 50, 280, 19)];
titleLabel.font = [UIFont systemFontOfSize:18];
titleLabel.textAlignment = NSTextAlignmentCenter;
titleLabel.text = @"房间秘钥";
}
- (void)setCompletionBlock:(void (^)(NSDictionary *, BOOL))block {
completionBlock = [block copy];
}
@end
... ...