iOS App提交表单中有一个条目"营销URL(可选)".工具提示说明如下:
包含有关您要添加的应用的信息的网址.如果提供,App Store上的客户将可以看到此信息.
在查看Apple的文档后,它没有提到它会出现在哪里.此外,我随机检查了App Store中的几个热门应用,我仍然不确定哪个链接是营销网址.你们能建议吗?
我在Xcode 7上创建了一个生成代码覆盖率数据的项目.
在其DerivedData文件夹中,我可以运行llvm-cov show:
/usr/local/opt/llvm/bin/llvm-cov show -instr-profile Build/Intermediates/CodeCoverage/testetestes/Coverage.profdata Build/Intermediates/CodeCoverage/testetestes/Products/Debug-iphonesimulator/testetestes.framework/testetestes
Run Code Online (Sandbox Code Playgroud)
这将产生如下输出:
/Users/marcelofabri/Desktop/testetestes/testetestes/Example.swift:
| 1|//
| 2|// Example.swift
| 3|// testetestes
| 4|//
| 5|// Created by Marcelo Fabri on 09/06/15.
| 6|// Copyright © 2015 Marcelo Fabri. All rights reserved.
| 7|//
| 8|
| 9|import UIKit
| 10|
| 11|class Example: NSObject {
1| 12| func testando() {
1| 13| if let url = NSURL(string: "dasdas") {
1| 14| print("ae \(url)")
0| 15| } else {
0| 16| …Run Code Online (Sandbox Code Playgroud) 在iOS 7上,CTSubscriber已添加到CoreTelephony框架中.没有可用的文档,只有它的头文件:
/*
* CTSubscriberTokenRefreshed
*
* Description:
* The name of the NSNotification sent when the carrier token is available.
*/
CORETELEPHONY_EXTERN NSString * const CTSubscriberTokenRefreshed __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_7_0);
CORETELEPHONY_CLASS_AVAILABLE(7_0)
@interface CTSubscriber : NSObject
/*
* carrierToken
*
* Description:
* A data blob containing authorization information about the subscriber.
*
* May return nil if no token is available.
*/
@property (nonatomic, readonly, retain) NSData* carrierToken __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_7_0);
@end
Run Code Online (Sandbox Code Playgroud)
Core Telephony …
我能够AVPlayer在iOS 6上显示字幕轨道,但我无法自定义它.它只显示相同的样式(小字体,白色).
这是我选择副标题的方法:
AVMediaSelectionGroup *subtitle = [asset mediaSelectionGroupForMediaCharacteristic: AVMediaCharacteristicLegible];
[self.videoPlayer.currentItem selectMediaOption:subtitle.options[0] inMediaSelectionGroup: subtitle];
Run Code Online (Sandbox Code Playgroud)
我是如何尝试自定义字幕的:
AVTextStyleRule *rule = [[AVTextStyleRule alloc] initWithTextMarkupAttributes:@{
(id)kCMTextMarkupAttribute_ForegroundColorARGB : @[ @1, @1, @0, @0 ],
(id) kCMTextMarkupAttribute_ItalicStyle : @(YES)}];
self.videoPlayer.currentItem.textStyleRules = @[rule];
Run Code Online (Sandbox Code Playgroud)
无论我在选择字幕之前还是之后都放了这个片段,结果都是一样的.
在AVPlayer与本地(文件)的URL(一个MP4文件)创建的.
有关如何做到这一点的任何想法?
我的代码已经有了这个属性,但是如何为下划线添加属性?
NSDictionary *attrs = [NSDictionary dictionaryWithObjectsAndKeys:
boldFont, NSFontAttributeName, foregroundColor, NSForegroundColorAttributeName, nil];
Run Code Online (Sandbox Code Playgroud)