自定义 iPhone 联系人详细信息屏幕
我需要制作一个与 iPhone 地址簿联系人详细视图相同的屏幕。我们可以在其中显示联系人图像、相关联系号码、地址、网址等。
我必须在其中显示一些与我的应用程序相关的自定义属性。
所以我采用图像控件、几个标签和一个合适的视图来显示一些联系人。
但问题是,当我滚动屏幕时,它只滚动 uitableview,而不是我们在 iphone 中看到的整个屏幕。
我是 iPhone 开发新手,所以如果有人给我一些代码示例来实现该功能会对我更有帮助,
谢谢
I have a requirement to make a screen same as iphone address book contacts detail view. in which we can display contact image, related contact no.s, addresses, urls, etc.
In which i have to show some custom properties in it related to my app.
so I take image control, a couple of labels for and a uitableview to display some contacts.
but the problem is that when i scroll the screen, it only scrolls the uitableview, not the whole screen as we see in iphone.
I am new to iphone development so if somebody give me some code example by which i achieve the functionality would be more helpful for me
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您希望更大的区域可滚动,请将其全部嵌入 UIScrollView 中。网上有很多这样的教程,google一下。 SDK 文档中还有一些示例代码,请查看“Scrolling”Apple 示例代码。
If you want a greater area to be scrollable, embed it all within a UIScrollView. There are lots of tutorials for such on net, google for it. There is also some sample code in SDK docs, look at "Scrolling" Apple sample code.
这可能是一个很好的起点:
https://github.com/samsoffes/sspersonviewcontroller
它的自定义abperson 视图控制器
this may be a good starting point:
https://github.com/samsoffes/sspersonviewcontroller
its a customisation of the abpersonviewcontroller