iOS:为什么我滚动时更改子视图帧?

时间:2016-01-12 06:12:10

标签: ios cocoa-touch uiscrollview

如何在UIScrollView中修复屏幕上的子视图位置? 每次我滚动时都会删除子视图。

我使用它但闪烁子视图。

 private static final String CREATE_QUERY = "CREATE TABLE "+ AdminContact.Question.TABLE_QUIZ+"("+ AdminContact.Question.ID+" INTEGER PRIMARY KEY AUTOINCREMENT,"+ AdminContact.Question.COLUMN_QUESTION+" TEXT NOT NULL,"+
            AdminContact.Question.COLUMN_ANSWER1+" TEXT NOT NULL,"+ AdminContact.Question.COLUMN_ANSWER2+" TEXT NOT NULL,"+ AdminContact.Question.COLUMN_ANSWER3+" TEXT NOT NULL,"+ AdminContact.Question.COLUMN_ANSWER4+" TEXT NOT NULL);";

1 个答案:

答案 0 :(得分:0)

您是否尝试将vPopup放在scrollView的superView上?喜欢self.view

在您的代码中,每次滚动时都隐藏vPopup([vPopup setHidden:YES];)
但是在Problem 1 - Conclusion: don't install laravel/framework v4.1.31 - Conclusion: don't install laravel/framework v4.1.30 - Conclusion: don't install laravel/framework v4.1.29 - Conclusion: don't install laravel/framework v4.1.28 - Conclusion: don't install laravel/framework v4.1.27 - Conclusion: don't install laravel/framework v4.1.26 - Conclusion: don't install laravel/framework v4.1.25 - Conclusion: don't install laravel/framework v4.1.24 - Conclusion: don't install laravel/framework v4.1.23 - Conclusion: don't install laravel/framework v4.1.22 - Conclusion: don't install laravel/framework v4.1.21 - Conclusion: don't install laravel/framework v4.1.20 - Conclusion: don't install laravel/framework v4.1.19 - Conclusion: don't install laravel/framework v4.1.18 - Conclusion: don't install laravel/framework v4.1.17 - Conclusion: don't install laravel/framework v4.1.16 - Conclusion: don't install laravel/framework v4.1.15 - Conclusion: don't install laravel/framework v4.1.14 - Conclusion: don't install laravel/framework v4.1.13 - Conclusion: don't install laravel/framework v4.1.12 - Conclusion: don't install laravel/framework v4.1.11 - Conclusion: don't install laravel/framework v4.1.10 - Conclusion: don't install laravel/framework v4.1.9 - Conclusion: don't install laravel/framework v4.1.8 - Conclusion: don't install laravel/framework v4.1.7 - Conclusion: don't install laravel/framework v4.1.6 - Conclusion: don't install laravel/framework v4.1.5 - Conclusion: don't install laravel/framework v4.1.4 - Conclusion: don't install laravel/framework v4.1.3 - Conclusion: don't install laravel/framework v4.1.2 - Conclusion: don't install laravel/framework v4.1.1 - Installation request for moltin/laravel-cart dev-master -> satisfiable by moltin/laravel-cart[dev-master]. - Conclusion: don't install laravel/framework v4.1.0 - Conclusion: remove laravel/framework 4.1.x-dev - moltin/laravel-cart dev-master requires laravel/framework ~5.0 -> satisfia ble by laravel/framework[5.0.x-dev, 5.1.x-dev, 5.2.x-dev, 5.3.x-dev]. - Can only install one of: laravel/framework[5.0.x-dev, 4.1.x-dev]. - Can only install one of: laravel/framework[5.1.x-dev, 4.1.x-dev]. - Can only install one of: laravel/framework[5.2.x-dev, 4.1.x-dev]. - Can only install one of: laravel/framework[5.3.x-dev, 4.1.x-dev]. - Installation request for laravel/framework 4.1.* -> satisfiable by laravel /framework[4.1.x-dev, v4.1.0, v4.1.1, v4.1.10, v4.1.11, v4.1.12, v4.1.13, 中显示它,显示时间(> = delayInSeconds)。

只需删除dispatch_after[vPopup setHidden:YES]
或将vPopup放在scrollView的superView中。