thanks in advance.
I have three UITabelView in a UIPageControl, but I could't scroll the UITableView vertically, can anyone tell me how to support this feature in this scenario? Or mission impossible...
Regards,
xiaojun
You should be able to scroll the table views in that scenario. My guess is that the UIPageControl is not large enough to allow user interaction with the table view. Try turning on the clipsSubviews property of the UIPageControl and see if you can still see the table views. Can you select a row in the table or interact with it in any way?
Related
I suppose the best way to describe the control, that I'm trying to make, is a tableView that could be dragged left and right and then scrolled up and down. There's no tabs, or anything else that the user touches just table view and it's cells.
I've read the documentation on UIScrollView and UITableView and there wasn't much in there :( Then again there might have been stuff I've missed
Any help would be greatly appreciated.
Have you tried adding the UITableView as a sub view of a UIScrollView (which can scroll only in horizontal direction) ? Take a look at https://github.com/raweng/StackScrollView
Im little lost here,thats what i need to do:
But the tableview seems to take all the view and the image just gone...its possible to do that?
Use a UIView, put your UIImageView on the top, tableview at the bottom inside the UIView.
Yes it's possible.
Looking at your attached screenshot, it looks like you have the gist of it. That said, your question is quite vague without further details it will be unlikely people will be able to address your problem
I got trouble to add slideshow to my application.
Currently, I have a UIView composed of a segmentedControl.
I made two "views" that I hide or display depending on the selected button.
I'm looking to make a simple slideshow in one of my two views. I made a UIImageView because it is simple to display pictures.
So I'd like to display my pictures one by one and it is possible to move from one image to another by sliding your finger to the right or left (just as in the native app "Photos").
I tried to adapt example codes from the documentation, but without succes.
So I'ml looking for help.
Thanks,
jb crestot
SO, I've actually done this and it's fairly easy. The ingredient that you are missing is a UISCrollView. My implementation did exactly what you describe (allow the user to go back and forth between a set of images).
Basically, add a UIScrollView to your View in interface builder and you will be creating the UIImage views with code (a simple for loop) and setting their images the same way. I did this safely with no memories issues with about 15 images (PNG's). There could be a potential performance issue with this message if you are working with a large number of images (say 40?)
I hope this helps, let me know if you need a code sample to see how this works.
You may consider using a custom class, such as iCarousel, linked below. Each of these views could be your image, and then tapping on them could launch a fullscreen view for example.
Keep us posted!
http://cocoacontrols.com/platforms/ios/controls/icarousel
See apple's page control sample application.
I have some 10 rows in my table. I can able to scroll the table view, but the scroll is not fixed. when i leave the scroll the table is again hiding the last row. Can any one help me out in this issue.
Thanks in advance
You need to adjust the size of table view and also set the autosizing in inspector from IB.
It is hard to give an opinion without any code, but have you checked that your Table is not larger that the size of the view? Maybe the bottom of your Table is just displayed outside the window.
If not, you shall post the code of your controller methods to get some more accurate help.
Are you using interface builder or everything is defined in the code?
I am using Apple's page control sample and showing three different types of views.
The scrolling is very slow on the device because I am using a UITableView and 5-7 labels on my view. Everything is updating from a database. How do I increase the performance of my scrolling behavior?
Fast Scrolling in Tweetie with UITableView
Or you could make sure all components on your UITableViewCells are opaque. UITableView doesn't handle well transparency when scrolling.
As Nick noted, the link back to the original Tweetie article, but I found it in the Wayback Machine - here
In researching this issue for myself, I found two other articles that were useful:
Glassy Scrolling with UITableView
Fun Shadow Effects Using Custom CALayer Shadowpaths (this is actually what solved my problem - I was using drop shadows in my views)