uipagecontrol

Need help for pushing a view in UIScrollView / UIPageControl on storyboard

谁说我不能喝 提交于 2019-12-05 07:21:26
问题 I'm trying to implement UIScrollView with UIPageControl on storyboard to display multiple views. All the examples, tutorials or informations I found are using xib and not storyboard. I tried to adapt Apple's sample code but I'm missing something. As you can see, it is quite simple. However, either I get an error in ContentController.m -[NSNull view]: unrecognized selector sent to instance 0x129acd8 when I test if (controller.view.superview == nil) where I push the view (see below after the

Swift/iOS8: Why are Page Control indicators not showing?

≯℡__Kan透↙ 提交于 2019-12-05 00:53:56
I am implementing a straightforward gallery view controller where the app displays a small range of full-screen images that the user can scroll through. I'm using UIPageViewController which I thought, should display the Page Control indicators automatically if I implement the correct datasource functions. However I still cannot see any indicators. In my main GalleryViewController : class GalleryViewController: UIViewController, UIPageViewControllerDataSource, UIPageViewControllerDelegate { var pageController: UIPageViewController? var pageContent = NSArray() override func viewDidLoad() { super

What's the best way of handling a UIPageControl that has so many dots they don't all fit on the screen

我是研究僧i 提交于 2019-12-04 11:18:29
问题 I have a UIPageControl in my application that looks perfectly fine with around 10 pages (dots), it's possible however for the user to add many different views, and so the number of dots could become say 30. When this happens the dots just disappear off the edge of the screen, and you can't always see the currently selected page, making it all look terrible. Is there any way to make the pagecontrol multi-line, or to shift it left or right at the moment the currently visible page disappears of

Is that possible to use UIPageControl to control the move of UITableView?

不问归期 提交于 2019-12-04 07:13:52
问题 From Apple sample "PageControl" we can know that UIPageControl can be used to control movement of pages in scrollview. As UITableView is subclass of UIScrollView,I want to use UIPageControl to control the movement of table view cell just like in "PageControl". But can not find any interface of delegate for me to do that. Question is : Is that possible to do this ? And Why ? Thanks Let me answer my question with : Programmatically Selecting and Scrolling Listing 6-5 Programmatically selecting

Swipe to change views

耗尽温柔 提交于 2019-12-04 07:02:42
Is the following easy to code? I have a tableview and when the user selects a cell a detail view is loaded. I want to allow the user to navigate throughout the items/detail-view representing the items in the tableview by left and right swipes, working in the same way as e.g. the home-screen of the iphone (e.g. while swiping, one page is moving off the screen and the next appears). I have seen this implemented in the MobileRSS-APP, so it is possible, but I just have a hard-time figuring out the way to do it properly. Thanks a million in advance! I am still trying to find my feet with cocoa

Hide dots on final page of UIPageViewController swift

这一生的挚爱 提交于 2019-12-04 02:03:53
问题 I have four pages in a UIPageViewController, and I'd like to hide the dots on the last page. I successfully made a function that gets called on the last page of the UIPageViewController. Basically, if the current view is the last one, it is called. But what do I put in that function to hide the dots temporarily? I found this https://stackoverflow.com/a/32016614/5700898 but it doesn't help with what goes inside that function. The normal method (hiding page dots on all pages), is not what I

UIPageControl - How to make the background transparent?

一世执手 提交于 2019-12-04 00:11:50
I am using UIPageControl and trying to make the background transparent. UIPageControl *pageControl = [UIPageControl appearance]; pageControl.pageIndicatorTintColor = [UIColor lightGrayColor]; pageControl.currentPageIndicatorTintColor = [UIColor blackColor]; pageControl.backgroundColor = [UIColor blackColor]; Any suggestions? Tried pageControl.backgroundColor = [UIColor clearColor]; no luck. ============ Okay, as mentioned by @powerj1984 and @daniellarsson UIPageControl seems to be not alterable with respect to position and background color. So I decided to move this to UIViewController and

How to create a paging scrollView with space between views

我的未来我决定 提交于 2019-12-03 18:00:20
问题 I followed the tutorial about how to create a scrollView Page Control: http://www.iosdevnotes.com/2011/03/uiscrollview-paging/ This tutorial is really good and I implement well the code. Here my question: I want to put a space between the my PageViews, but when it change the page it show the space between the views in the next page. The scroll must stop after the space when I change the page. I changed the tutorial code here: - (void)viewDidLoad { [super viewDidLoad]; NSArray *colors =

Possible optimization to unload the views+controllers which are no longer visible in UIScrollView and PageControl

时间秒杀一切 提交于 2019-12-03 15:05:59
问题 I have this page control code same from the apple sample. Here i have a subview (controller.view) which contains a ImageView. Now problem is with memory management. All works fine. But when i scroll 5-10 pages. RAM gets filled. I tried to release the view+controller but did not find any proper place/way that work. I want to release the views which are not currently visible. (except current,previous & next view) - (void)applicationDidFinishLaunching:(UIApplication *)application {

How to combine UIScrollview with UIPagecontrol to show different views?

隐身守侯 提交于 2019-12-03 15:01:19
问题 I've searched and searched for a tutorial for this but none of them are what I'm looking for. I've tried Apple's sample but it is just colors and I don't know how to make it views. All I'm looking for is a screen that will page while showing the page control. Each time the scroll view pages i want it to show a completely different view with buttons, a lot like the home screen of the iPhone. I found the sample code below which works very well with just images, but I'd like to modify to work