我如何设置rootViewController的UINavigationController比其他的方法initWithRootViewController?
我想使用initWithNavigationBarClass:toolbarClass:为我的NavigationController提供自定义工具栏,所以我认为我不能使用initWithRootViewController.
目标:
有一个UIWebView具有相同的宽度,因为它是上海华,这是一种UIScrollView使用自动布局约束.
码
NSLayoutConstraint *makeWidthTheSameAsScrollView =[NSLayoutConstraint
constraintWithItem:self.questionWebView
attribute:NSLayoutAttributeWidth
relatedBy:0
toItem:self.masterScrollView
attribute:NSLayoutAttributeWidth
multiplier:1.0
constant:0];
[self.view addConstraint:makeWidthTheSameAsScrollView];
NSLog(@"The width of questionWebView *AFTER* adding the constrain is: %f", self.questionWebView.frame.size.width);
NSLog(@"The width of scrollView *AFTER* adding the constrain is: %f", self.masterScrollView.frame.size.width);
Run Code Online (Sandbox Code Playgroud)
目前的结果
当我记录self.questionWebView(the UIWebView)的宽度时,当应用autolayout约束时,它的宽度不会改变.
问题
PS我知道这是对苹果的建议放置UIWebView在一个UIScrollView,但我已经关闭了滚动的能力,UIWebView使用属性self.questionWebView.userInteractionEnabled = NO;.目前使用UIWebView是我显示HTML表格的最佳策略.

有关于我可以通过FWWebDialogs的全套参数的文档吗?我可以在"说些什么"文本中设置文本(我知道你可以设置标题和描述).
我想做的事
我想跟踪应用程序从精简版到付费版的升级,包括 a) 点击 CTA 进行升级 b) 从点击到实际安装的转化 c) 点击行为的用户群有何不同(如果有的话)通过其他方式发现该应用程序的用户。这当然适用于不具有原生应用内购买功能的应用。
b) 是最重要的。

语境
我一直在审查一些服务,这些服务允许您跟踪点击到应用安装 -
Apsalar - https://apsalar.com/products/apscience/
我已经看到您无法从移动 Safari 中获取 iOS 的 IDFA。
据我考虑它是如何工作的(以 Apsalar 为例)
题
它实际上是如何工作的?或者有哪些选择范围?当然,在我的情况下,如果他们点击升级,我会在应用程序的精简版中获得设备 IDFA。并检查 IDFA 是否稍后出现在付费用户组中。但我认为这需要相当长的时间。
更新 #1
因此,收到来自 Distimo 的电子邮件后,这似乎是使用设备指纹识别。
更新 #2
最好使用 identifierForVendor 调用生成唯一的#,然后将其传递给分析包,以便在应用程序的精简版和付费版本之间跟踪不同的用户?
或者每个应用程序制作人是否需要对他们的应用程序进行更新以使其在iOS 7上运行.我认为不是,但我喜欢在iOS 7上运行时为早期版本的iOS构建的应用程序中存在的确认和一些风险.
上下文
UIViewController一个UINavigationController堆栈内的UIViewController我UILabel在(x,y)坐标(0,0)处以编程方式添加UILabel到self.view(这是在UIViewController中)或添加UILabel到a UIView,这UIView是self.containerViewself.containerView 通过以下代码创建并添加到视图中:
- (void)addContainerView
{
// Create a UIView with same frame as the screen bounds
CGRect containerViewFrame = [[UIScreen mainScreen] applicationFrame];
self.containerView = [[UIView alloc] initWithFrame:containerViewFrame];
// Give the UIView a red background
self.containerView.backgroundColor = [UIColor redColor];
// Add the view
[self.view addSubview:self.containerView];
}
Run Code Online (Sandbox Code Playgroud)
将UILabel通过该代码添加:
- (void)addTestLabel
{
self.navigationController.navigationBarHidden = YES;
CGRect frame = CGRectMake(0, 0, 100, …Run Code Online (Sandbox Code Playgroud)