在iPad上具有视图旋转按钮

问题描述

| 我有一个通用应用程序,该应用程序具有以编程方式创建的按钮,可以根据设备插入到特定的框架位置。现在,我需要在iPad上使用受支持的视图旋转相同的按钮,并且在执行该操作时非常固定。到目前为止,这是我所拥有的: 另外,我应该提到以下代码在
-(void)configureEnvironmentUsingAppData:(NSString *)appData
,并且所有视图都是在整个程序中以编程方式创建的。 //用于INBOX的BEGIN插入按钮/////////////////////////////////////////// ////////////////
    appButton = [[UIButton buttonWithType:UIButtonTypeCustom] retain];


    if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)

    {

    appButton.frame = CGRectMake(700,25,24,16);   

   }

    else

    {

    appButton.frame = CGRectMake(290,16);

    }


    [appButton setBackgroundImage:[UIImage imageNamed:@\"envelope_white.png\"]    forState:UIControlStateNormal];
     appButton.layer.borderColor=[UIColor clearColor].CGColor;
     appButton.backgroundColor = [UIColor clearColor];


    [appInboxButton addTarget:self
                      action:@selector(showAppInbox)
            forControlEvents:UIControlEventTouchDown];    


   [self.window addSubview:appButton];
    

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)