-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathHostViewController.m
More file actions
62 lines (45 loc) · 1.23 KB
/
HostViewController.m
File metadata and controls
62 lines (45 loc) · 1.23 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
//
// HostViewController.m
// Bluetooth
//
// Created by Jose Luis Rodriguez on 11/04/13.
// Copyright (c) 2013 Jose Luis Rodriguez. All rights reserved.
//
#import "HostViewController.h"
@interface HostViewController ()
@end
@implementation HostViewController
{
Host *_host;
}
-(void)viewDidAppear:(BOOL)animated{
[super viewDidAppear:animated];
if(_host==nil){
_host=[[Host alloc]init];
_host.maxClients=1;
[_host aceptarconexionesparalasesion:SESSION_ID];
self.Campotexto.placeholder=_host.session.displayName;
[self.Tablaclientes reloadData];
}
}
-(void)viewDidLoad{
_Tablaclientes.delegate=self;
_Tablaclientes.dataSource=self;
_Campotexto.delegate=self;
}
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
return 0;
}
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
return nil;
}
-(BOOL)textFieldShouldReturn:(UITextField *)textField{
[self.Campotexto resignFirstResponder];
return YES;
}
- (IBAction)Botonstart:(UIButton *)sender {
}
- (IBAction)Botonregresa:(UIButton *)sender {
[self dismissViewControllerAnimated:YES completion:nil];
}
@end