我想在我的应用程序中使用滚动视图。我将解释情况: Mine是一个配方应用程序。我想在滚动视图中显示所有配方图像,当我单击滚动视图内部图像,对应的成分和制剂已被示出。只见使用的UIScrollView内部图像视图许多教程,与button.But所有这些教程替换图像视图的思想是如此复杂。可任一项指我一个简单的例。 这是我的应用程序seccond page.when我点击第一页的形象和配料和准备特定的配方shown.But我想显示的UIScrollView的所有影像,当我点击一个特定的图像,相应的成分和筹备已被显示UIScrollView中的UIButton
0
A
回答
1
从我的角度来看,我认为,如果你会使用一个UITableView
或UICollectionView
(或corespondent控制器:UITableViewController
和UICollectionViewController
),你会达到刨丝器的结果不是试图用内添加图像按钮滚动视图。
UITableView Tutorial和UICollectionView Tutorial
你也可以去观看苹果的WWDC视频
我希望这是对你有帮助, Cheeers
+0
这里是链接苹果的WWDC视频https://developer.apple.com/videos/ – alexcristea 2013-04-04 07:00:19
0
广场的UIScrollView在View XIB,再加入UIButtons里面的UIScrollView ,通过钩住动作类型来设置按钮动作在触摸按钮内按下按钮在UIView上添加子视图并显示食谱的详细信息[self.view addSubView:RecipeDetailView];这里的食谱详细信息视图子视图,您在按钮上加载reciepe信息。
相关问题
- 1. 的UIButton中的UIScrollView
- 2. 的UIButton不UIScrollView中
- 3. UIscrollview中的自定义UIButton
- 4. 识别UIScrollView中的UIButton Tap
- 5. UIScrollView后面的UIButton
- 6. UIScrollView涵盖UIButton
- 7. UIScrollView与UIButton和UITapGestureRecognizer
- 8. 用UIButton更改UIScrollView?
- 9. UIImageView上的UIButton(通过UIScrollView)
- 10. 在UISclickView UIScrollView上的UIButton
- 11. UIButton position UIImage zoom on UIScrollView
- 12. UIButton不响应UIScrollview寻呼
- 13. UIScrollView和UIButton,UIButtons消失
- 14. UIButton不会在UIScrollView中互动
- 15. UIButton没有在UIScrollView中显示
- 16. 在UIScrollView中无法触摸UIButton
- 17. 将静态UIButton添加到UIScrollview中
- 18. 不能添加的UIButton到的UIScrollView
- 19. 的UIButton在里面的UIScrollView与数据
- 20. 放大UIScrollView时的UIButton位置
- 21. 从UIScrollView到UIButton的转发事件
- 22. 水平上的UIButton UIScrollView问题
- 23. UIButton作为复杂的UIScrollView子视图
- 24. 添加一个UIButton到的UIScrollView
- 25. UIScrollView内的UIButton禁用滚动
- 26. uiscrollview中的uibutton的父级uiviewcontroller中的触发器方法
- 27. 将UIButton添加到UIScrollView,然后将UIScrollView添加到UIView
- 28. 添加到UIScrollView时UIButton不滚动
- 29. 在UIScrollView UIView UIButton加载不正确
- 30. 允许UIScrollView滚动时按下UIButton
你为什么不使用的tableview? – jkk 2013-04-04 06:39:31
[myScrollView setScrollEnabled:YES]; [myScrollView setContentSize:CGSizeMake(600,60)]; [myScrollView addSubview:myButton]; CGRect buttonLocation = CGRectMake(25,20,80,30); [myButton setFrame:buttonLocation]; – jkk 2013-04-04 06:42:05
是的表视图是一个更好的解决方案。如果您正在从事recipies和东西试试这个https://github.com/YuxinYang/ios-5-recipe-sample – satheeshwaran 2013-04-04 06:42:23