Skip to content

Commit 4b5ec18

Browse files
committed
[iOS Example] Move protocol conformance declaration out of header
This can just be in the class extension in the implementation file.
1 parent 1c0018a commit 4b5ec18

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#import <UIKit/UIKit.h>
22
#import "PTChannel.h"
33

4-
@interface PTViewController : UIViewController <PTChannelDelegate, UITextFieldDelegate>
4+
@interface PTViewController : UIViewController
55

66
@end

Peertalk iOS Example/PTViewController.m

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
#import "PTExampleProtocol.h"
22
#import "PTViewController.h"
33

4-
@interface PTViewController () {
4+
@interface PTViewController () <
5+
PTChannelDelegate,
6+
UITextFieldDelegate
7+
> {
58
__weak PTChannel *serverChannel_;
69
__weak PTChannel *peerChannel_;
710
}

0 commit comments

Comments
 (0)