27选中状态UIControlStateSelected_子视图超出父视图_真机调试(正式版)_图标ico_启动页

一、选中状态UIControlStateSelected

        //默认状态下的图片,标题颜色
        [button setBackgroundImage:[UIImage imageNamed:@"w_xq2"] forState:UIControlStateNormal];
        [button setTitleColor:[UIColor blueColor] forState:UIControlStateNormal];
        //选中状态下的图片,标题颜色
        [button setBackgroundImage:[UIImage imageNamed:@"w_xq1"] forState:UIControlStateSelected];
        [button setTitleColor:[UIColor blueColor] forState:UIControlStateSelected];
        //默认状态下第一个按钮是被选中的
        if (i == 0)
        {
            button.selected = YES;
        }

二、子视图中的内容 超出 父视图 时
设置父视图的剪切属性为YES

        //设置父视图的clipsToBounds = YES,可以将超出父视图的子视图剪切掉
        self.clipsToBounds = YES;

三、真机调试
3.1步骤
1.创建工程

3.点击Certificates Identifiers & Profiles

explicit App ID(详细的id):com.zhiyou100.ZhenJiTest68
wildcard App ID(通配符id):com.zhiyou100.*

3.2查找UDID
方法1:

方法2:

四、设置App图标ico
pt:point
px:像素

五、启动项
项目:APPIconAndLaunch0329
1.添加启动页图片

2.配置
点击Use Asset Catalog

3.默认显示Brand Assets,然后删除Brand Assets

4.选择我们创建的LaunchImage即可

启动页显示速度:

@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 
{
 //线程休眠
    [NSThread sleepForTimeInterval:3];
    return YES;
}

你可能感兴趣的:(27选中状态UIControlStateSelected_子视图超出父视图_真机调试(正式版)_图标ico_启动页)