first add sdk

This commit is contained in:
jialexd 2019-04-02 16:34:25 +08:00
commit f91efd1250
3915 changed files with 1291882 additions and 0 deletions

View file

@ -0,0 +1,32 @@
/*
Copyright (C) 2015 Apple Inc. All Rights Reserved.
See LICENSE.txt for this samples licensing information
Abstract:
The secondary detailed view controller for this app.
*/
#import <UIKit/UIKit.h>
@interface ChatViewController : UIViewController <NSStreamDelegate, NSNetServiceBrowserDelegate, NSNetServiceDelegate, UITextFieldDelegate>
{
NSNetServiceBrowser *_netServiceBrowser;
NSMutableArray *_servicesArray;
NSMutableArray *messages;
NSInputStream *inputStream;
NSOutputStream *outputStream;
}
@property (nonatomic, retain) NSNetService *selectedService;
@property (nonatomic, retain) NSMutableArray *dataServicesArray;
@property (nonatomic, retain) NSInputStream *inputStream;
@property (nonatomic, retain) NSOutputStream *outputStream;
@property (nonatomic, retain) NSMutableArray *messages;
- (IBAction) sendMessage;
@property (nonatomic, retain) IBOutlet UITextView *chatMessageField;
@property (nonatomic, retain) IBOutlet UITextField *inputMessageField;
@end