<p style="margin-top: 0px; margin-bottom: 0px; font-size: 24px; line-height: normal; font-family: Menlo;"><pre name="code" class="objc">#import "ViewController.h"
#import "DirectionControl.h"
@interface ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
DirectionControl *Controll = [[DirectionControl alloc] initWithFrame:CGRectMake(50, 100, 400, 400)];
[self.view addSubview:Controll];
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end
DirectionControl.h
#import <UIKit/UIKit.h>
#import <takeControlView/takeControlView.h>
@interface DirectionControl : UIView{
UIImageView *directionBg;
UIImageView *controlBg;
CGFloat SmallRockerCircleX,SmallRockerCircleY;
int R;
}
@end