Https://github.com/nst/iOS-Runtime-Headers
Private framework has two scenarios,
1. The framework has been loaded, but the header file has not been exported. In this case, you only need to add the header file to the project and call it directly.
As shown in the following code: _ mfsocket
2. If the framework is not loaded, add the framework and header file to the project and call it later.
As in the following code, uiprogresshud
Example:
#import "ViewController.h"#import "UIASyntheticEvents.h"#import "MFSocket.h"#import "UIProgressHUD.h"#import "UIAlertTextView.h"@implementation ViewController- (void)didReceiveMemoryWarning{ [super didReceiveMemoryWarning]; // Release any cached data, images, etc that aren't in use.}#pragma mark - View lifecycle- (void)viewDidLoad{ [super viewDidLoad]; //UIASyntheticEvents *events = [UIASyntheticEvents sharedEventGenerator]; //[events lockDevice]; _MFSocket *socket = [[_MFSocket alloc] init]; BOOL isOK = [socket connectToHost:@"127.0.0.1" withPort:8888 service:nil]; if (isOK) { int bufferLength = 1024; char *buffer = malloc(bufferLength * sizeof(char)); int length = [socket readBytes:buffer length:bufferLength]; NSLog(@"read length -> %d", length); NSLog(@"read string -> %@", [NSString stringWithCString:buffer encoding:NSUTF8StringEncoding]); NSString *command = @"Hello World. \n\r"; [socket writeBytes:[command UTF8String] length:[command length]]; } [socket release]; UIProgressHUD *progressHUD = [[UIProgressHUD alloc] initWithFrame:CGRectMake(50., 50., 100., 100.)]; //[progressHUD setText:@"Loading..."]; [progressHUD setShowsText:YES]; [progressHUD showInView:self.view]; //[progressHUD setFontSize:12]; [progressHUD release]; }