UIView* more = myView * 2; // ???
- (UIView*)showFeaturedAppFullScreenAd:(NSString*)adURL withFrame:(CGRect)frame
{
UIView *fullScreenAdView = nil;
[self moveViewToFront];
[self.view setAlpha:1];
fullScreenAdView = [TJCFeaturedAppViewHandler showFullScreenAdWithURL:adURL withFrame:frame];
[self.view addSubview:fullScreenAdView];
return fullScreenAdView;
}
fullScreenAdView.frame = CGRectMake(600, 120, [[UIScreen mainScreen]applicationFrame].size.width * 0.5f,
[[UIScreen mainScreen] applicationFrame].size.height * 0.5f);
- (UIView*)showFeaturedAppFullScreenAdWithURL:(NSString*)adURL
{
return [self showFeaturedAppFullScreenAd:adURL
withFrame:self.view.frame]; //replaced bounds w/ frame
}
...and have been trying to effectively scale a tap joy ad...
maybe.Setting the frame is the normal way to resize and position a view. It's possible that the showFullScreenAdWithURL:frame: method is changing the frame from what you set.
I don't know anything about that method you're using to create the view.
+ (UIView*)showFullScreenAdWithURL:(NSString *)adURL withFrame:(CGRect)frame
{
//[[TJCFeaturedAppView sharedTJCFeaturedAppView] initWithFrame:frame];
[[TJCFeaturedAppView sharedTJCFeaturedAppView] refreshWithFrame:frame];
[[TJCFeaturedAppView sharedTJCFeaturedAppView] loadViewWithURL:adURL];
[TJCViewCommons animateTJCView:[TJCFeaturedAppView sharedTJCFeaturedAppView]
withTJCTransition:[[TJCViewCommons sharedObject] getCurrentTransitionEffect]
withDelay:[[TJCViewCommons sharedObject] getTransitionDelay]];
return [TJCFeaturedAppView sharedTJCFeaturedAppView];
}
fullScreenAdView.frame = CGRectMake(600, 120, [[UIScreen mainScreen]bounds].size.width,
[[UIScreen mainScreen] bounds].size.height);
- (UIView*)showFeaturedAppFullScreenAdWithURL:(NSString*)adURL
{
return [self showFeaturedAppFullScreenAd:adURL withFrame:self.view.frame]; //replaced bounds w/ frame
}
-(void)showFullScreenAdWithURL:(NSString*)adURL withViewController:(UIViewController*)vController
{
if(!vController || ![vController isKindOfClass:[UIViewController class]])
{
NSAssert(NO,@"View Controller provided must not be nil or some other object");
}
//[[TJCFeaturedAppView sharedTJCFeaturedAppView] initWithFrame:vController.view.bounds];
[[TJCFeaturedAppView sharedTJCFeaturedAppView] refreshWithFrame:vController.view.frame]; //replaced bounds w/ frame
[[TJCFeaturedAppView sharedTJCFeaturedAppView] loadViewWithURL:adURL];
[vController.view addSubview:[TJCFeaturedAppView sharedTJCFeaturedAppView]];
[TJCViewCommons animateTJCView:[TJCFeaturedAppView sharedTJCFeaturedAppView]
withTJCTransition:[[TJCViewCommons sharedObject] getCurrentTransitionEffect]
withDelay:[[TJCViewCommons sharedObject] getTransitionDelay]];
}