I'm trying to create a custom actionSheet view from a view loaded in a nib. I can unload the the view from the nib fine and then I'm adding the view to the main view:
UIWindow* window = [UIApplication sharedApplication].keyWindow;
UIView* mainView = [window.subviews objectAtIndex:0];
[mainView addSubview:self];
but when I do this and I'm in landscape mode then the view coordinate system is off. I tried applying a transform to the view to no avail. Any ideas?