总体来说,是不确定打开哪一个

参考以下的页面:
1 Multiple apps with the same URL Scheme - iOS
引用
If two apps register the same custom URL scheme, it is undefined which app will actually be launched. One will be launched but there is no way to know.

Here's a real kicker. If you have two apps on your device with the same URL scheme, and you delete the one that actually gets launched, the other one will not get launched by the URL without rebooting the iOS device.


2 more than one app has same URL Identifier for Custom URL Application?
引用
Custom URL apps are accepted by Apple. However if multiple apps on the device have registered same URL scheme then the behavior is undefined. From iOS Application Programming Guide, "If multiple third-party applications register to handle the same URL scheme, it is undefined as to which of the applications is picked to handle URLs of that type."


3 苹果官方唤起过程讲述
很多app都是设计为tabItem是两个状态,当前选择状态和未选择状态
ios7之前是这样的:

UITabBarItem* item = [self.tabBar.items objectAtIndex:1];
        [item setFinishedSelectedImage:[UIImage imageNamed:@"1.png"]
           withFinishedUnselectedImage:[UIImage imageNamed:@"2.png"]];


7.0之后storyboard里面可以这样:

    id result = [self.tabBarItem initWithTitle:@"相片" image:[UIImage imageNamed:@"photo"] selectedImage:[UIImage imageNamed:@"photo_cur"]];
    if (!result) {/*do sth*/}


试过也一般,但官方是这样写的,备忘一下:

When URLs are just not resolving the way you want it, to time to clear or flush the dns nameserver local cache -flush-the-loacl-cache

How to clear the local DNS cache….

OSX 10.10

sudo discoveryutil udnsflushcaches


OSX 10.9

dscacheutil -flushcache; sudo killall -HUP mDNSResponder


OSX 10.7  – 10.8

sudo killall -HUP mDNSResponder


OSX 10.5 – 10.6

sudo dscacheutil -flushcache


Windows

ipconfig /flushdns


Linux (depending on what you’re running)

/etc/init.d/named restart
/etc/init.d/nscd restart
最近审核app,苹果拒绝了,说点击发邮件会闪退
自己测试了,没有问题,后来在另外的设备再次测试,真的是闪退
发现如果系统没有配置邮件,就会出现这样的问题
使用MFMailComposeViewController的时候,要判断一下是否可以发哦

    if (![MFMailComposeViewController canSendMail]) {
        UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"请配置邮件"
                                                        message:@"你的设备不支持发邮件,需要你配置你的设备"
                                                       delegate:self
                                              cancelButtonTitle:@"好"
                                              otherButtonTitles:nil,nil];
        [alert show];
        return;
    }
NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc] init];
paragraphStyle.headIndent = 15; // <--- indention if you need it
paragraphStyle.firstLineHeadIndent = 15; //首行缩进
paragraphStyle.lineSpacing = 7; // <--- magic line spacing here! 行间距
UIFont *font = xxx //
NSDictionary *attrsDictionary =
@{ NSFontAttributeName: font, //<-- if you need; & there are many more attrs
   NSParagraphStyleAttributeName: paragraphStyle};

self.textView.attributedText = [[NSAttributedString alloc]
initWithString:@"Hello World over many lines!" attributes:attrsDictionary];
分页: 8/361 第一页 上页 3 4 5 6 7 8 9 10 11 12 下页 最后页 [ 显示模式: 摘要 | 列表 ]

阅读推荐

服务器相关推荐

开发相关推荐

应用软件推荐