diff --git a/Tools/capp/Templates/Application/AppController.j b/Tools/capp/Templates/Application/AppController.j index 21ede646e..a2f9912a9 100644 --- a/Tools/capp/Templates/Application/AppController.j +++ b/Tools/capp/Templates/Application/AppController.j @@ -26,7 +26,7 @@ [label sizeToFit]; [label setAutoresizingMask:CPViewMinXMargin | CPViewMaxXMargin | CPViewMinYMargin | CPViewMaxYMargin]; - [label setFrameOrigin:CGPointMake((CGRectGetWidth([contentView bounds]) - CGRectGetWidth([label frame])) / 2.0, (CGRectGetHeight([contentView bounds]) - CGRectGetHeight([label frame])) / 2.0)]; + [label setCenter:[contentView center]]; [contentView addSubview:label];