Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>using this in appdelegate will help u to show button in all the screen. if u need handle this button, import viewcontrollerAppdelegate.h to the view controller. and use</p> <pre><code>UIAppDelegate.SettingButton.hidden=True; </code></pre> <p>or like this any. just try</p> <pre><code> - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { settingButton = [UIButton buttonWithType:UIButtonTypeCustom]; [settingButton addTarget:self action:@selector(settingButtonPressed:)forControlEvents:UIControlEventTouchDown]; UIImage *buttonImage = [UIImage imageNamed:@"icon-lb.png"]; [settingButton setBackgroundImage:buttonImage forState:UIControlStateNormal]; [settingButton setTitleColor:[UIColor blackColor] forState:UIControlStateNormal]; settingButton.frame = CGRectMake(265, 17, 40, 45); settingButton.hidden=TRUE; [self.window addSubview:settingButton]; [self.window makeKeyAndVisible]; return YES; } - (void)settingButtonPressed:(id) sender { [[NSNotificationCenter defaultCenter] postNotificationName:@"settingButtonPressed" object:nil]; setting *obj = [[setting alloc] initWithNibName:@"setting" bundle:nil]; UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:obj]; navController.navigationBar.tintColor=[UIColor blackColor]; [UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration:0.5]; [self.window addSubview:navController.view]; [navController.view setFrame:CGRectMake(0,480,320,480)]; [UIView setAnimationTransition:UIViewAnimationTransitionNone forView:navController.view cache:YES]; [navController.view setFrame:CGRectMake(0,0,320,480)]; [UIView commitAnimations]; } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload