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;
}
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容