AppDelegate * appDelegate = [[UIApplication sharedApplication] delegate];
AppRaterView * raterView = [[AppRaterView alloc] initWithNibName:@"AppRaterView" bundle:nil];
CGRect f = CGRectOffset(raterView.view.frame, 0.0, 20.0);
raterView.view.frame = f;
[appDelegate.window addSubview:raterView.view];
转载于:https://www.cnblogs.com/tx8899/archive/2012/06/20/2556567.html