Hi, I just stripped down the offending class you can pasted into Scaffold and hopefully you will see what I mean, the UIButton appears before any other Sparrow rendering takes place (happens using Sparrow 2.01 on iOS 7 on iPhone 5 and iPad 4 and iOS 5 iPad 1).
//
// KillScreen.h
// App Here
//
@interface KillScreen : SPSprite {
SPOverlayView *mainView;
}
@end
//
// KillScreen.m
// App Here
//
#import "KillScreen.h"
@implementation KillScreen
-(void)dummyButtonTwo {
NSLog(@"Touched UIKit button");
}
-(id)init {
if ((self = [super init])) {
// quad as background (enables full screen touches)
SPQuad *quad = [[SPQuad alloc] initWithWidth:320.0f height:640.0f color:0x000000];
quad.alpha = 1.0f;
[self addChild:quad];
// DRAW BUTTONS FOR VARIOUS MODES AND FUNCTIONS
mainView = [[SPOverlayView alloc] initWithFrame:CGRectMake(0, 0, 320.0f, 640.0f)];
SPTextField *t1 = [SPTextField textFieldWithWidth:320.0f height:18.0f text:@"© 2013" fontName:@"Arial" fontSize:16.0f color:0xffffff];
t1.hAlign = SPHAlignCenter;
t1.vAlign = SPVAlignCenter;
t1.x = 0.0f;
t1.y = 0.0f;
[self addChild:t1];
SPTextField *t2 = [SPTextField textFieldWithWidth:320.0f height:18.0f text:@"Coding:" fontName:@"Arial" fontSize:16.0f color:0xffffff];
t2.hAlign = SPHAlignCenter;
t2.vAlign = SPVAlignCenter;
t2.x = 0.0f;
t2.y = t1.y + t1.height + 10.0f;
[self addChild:t2];
SPTextField *t3 = [SPTextField textFieldWithWidth:320.0f height:18.0f text:@"If you like this app, please rate it:" fontName:@"Arial" fontSize:16.0f color:0xffffff];
t3.hAlign = SPHAlignCenter;
t3.vAlign = SPVAlignCenter;
t3.x = 0.0f;
t3.y = t2.y + t2.height + 15.0f;
[self addChild:t3];
UIButton *b1 = [UIButton buttonWithType:UIButtonTypeDetailDisclosure];
b1.frame = CGRectMake(0.0f, t3.y + t3.height, 320.0f, 30.0f);
[b1 setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
[b1 setTitle:@" RATE NOW" forState:UIControlStateNormal];
[b1 addTarget:self action:@selector(dummyButtonTwo) forControlEvents:UIControlEventTouchUpInside];
[b1 setContentHorizontalAlignment:UIControlContentHorizontalAlignmentCenter];
[mainView addSubview:b1];
[Sparrow.currentController.view addSubview:mainView];
}
return self;
}
@end