我有以下故事板:
由于某种原因,在其中间具有灰色视图控制器标签的两个选项卡显示为灰色,而不显示灰色视图控制器标签。 (可能很难看到,但有一个第3个白色方框,标题为“#34;评级"”
问题示例:
为什么会出现这种不一致的情况?
答案 0 :(得分:2)
你的前两个视图控制器里面没有UIViews。它们只是空白视图控制器。
尝试重新添加UIViewController
并将其连接到标签栏。默认情况下,UIViewController
内部应包含UIVIew
。
或者,您可以克隆另一个..
答案 1 :(得分:1)
之所以发生这种情况,是因为该应用无法在两个UIViewController
设置'以及'指示中显示。
您可能要做的是删除两个UITabBarController
,然后从对象库中添加它们。然后,您可以从UIViewController
ctl拖动到view controller
并选择set.seed(1234)
library(MCMCglmm)
data(bird.families)
n <- Ntip(bird.families)
# Create some dummy variables
d <- data.frame(taxon = bird.families$tip.label,
X1 = rnorm(n),
X2 = rnorm(n),
X3 = sample(c("A", "B", "C"), n, replace = T),
X4 = sample(c("A", "B", "C"), n, replace = T))
# Simulate a phenotype composed of phylogenetic, fixed and residual effects
d$phenotype <- rbv(bird.families, 1, nodes="TIPS") +
d$X1*0.7 +
ifelse(d$X3 == "B", 0.5, 0) +
ifelse(d$X3 == "C", 0.8, 0) +
rnorm(n, 0, 1)
# Inverse matrix of shared phyloegnetic history
Ainv <- inverseA(bird.families)$Ainv
# Set priors
prior <- list(R = list(V = 1, nu = 0.002),
G = list(G1 = list(V = 1, nu = 0.002)))
uMCMCglmm <- updateable(MCMCglmm)
model <- uMCMCglmm(phenotype ~ X1 + X2 + X3 + X4,
random = ~taxon,
ginverse = list(taxon=Ainv),
data = d,
prior = prior,
verbose = FALSE)
# Explore possible simplified models
options(na.action = "na.fail")
dred <- dredge(model)
# Calculate a model average
avg <- model.avg(dred)
summary(avg)
关系。