-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathJoinViewController.m
More file actions
78 lines (49 loc) · 1.53 KB
/
JoinViewController.m
File metadata and controls
78 lines (49 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
//
// JoinViewController.m
// Bluetooth
//
// Created by Jose Luis Rodriguez on 11/04/13.
// Copyright (c) 2013 Jose Luis Rodriguez. All rights reserved.
//
#import "JoinViewController.h"
@interface JoinViewController ()
@end
@implementation JoinViewController
{
MatchmakingClient *_matchClient;
}
-(void)viewDidLoad{
self.Nombre.delegate=self;
self.Tabla.delegate=self;
self.Wait.hidden=YES;
UITapGestureRecognizer *gestureRecognizer = [[UITapGestureRecognizer alloc] initWithTarget:self.Nombre action:@selector(resignFirstResponder)];
gestureRecognizer.cancelsTouchesInView = NO;
[self.view addGestureRecognizer:gestureRecognizer];
}
-(void)viewDidAppear:(BOOL)animated{
[super viewDidAppear:animated];
if(_matchClient==nil){
_matchClient=[[MatchmakingClient alloc]init];
[_matchClient startsearchingwithID:SESSION_ID];
self.Nombre.placeholder=_matchClient.session.displayName;
[self.Tabla reloadData];
}
}
-(BOOL)textFieldShouldReturn:(UITextField *)textField{
[textField resignFirstResponder];
return NO;
}
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
return 0;
}
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
return nil;
}
- (IBAction)Closewait:(UIButton *)sender {
}
- (IBAction)Regresa:(UIButton *)sender {
[self dismissViewControllerAnimated:YES completion:nil];
}
- (IBAction)Start:(UIButton *)sender {
}
@end