uipagecontrol

Push Viewcontroller from within other ViewControllers that are not on top of Navstack?

a 夏天 提交于 2019-12-08 04:34:37
问题 i have a scrollview loaded into my mainview (with pagecontrol). What i want to do is to have the scrollview use the "Touchesbegan" method to look for double taps and then have it push a new viewcontroller onto the navstack. The second goal seems impossible. I have the seperated scrollviewcontroller call a method in the mainviewcontroller. That method should push a new viewcontroller onto the stack. It doesnt, but when i call this method from within the mainviewcontrollerclass it does work?!

Nesting UIScrollView inside UIScrollView Cocoa Touch

[亡魂溺海] 提交于 2019-12-08 02:11:52
问题 They "brush" the subject in this thread, but it does not really answer much:Stackoverflow UIScrollView question I have a UIScrollView and a UIPageControl working together to present a set of views. (Standard "Home screen" swipe style, in lack of better words) Each of these views, inside the scrollView, has a thin menu in the bottom part, that can also be swiped from side to side. If anyone remember the previous FaceBook app, this also had a menu that could be swiped horizontally, however, not

UI_07 UIScrollView、UIPageControl

自闭症网瘾萝莉.ら 提交于 2019-12-07 17:14:42
⼀、UIScrollView的常⽤属性 UIScrollView是一个能够滚动的视图控件,可以用来展示大量的内容,并且可以通过滚动查看所有的内容。UIScrollView是所有滚动视图的基类。 1、UIScrollView核⼼功能 滚动:contentSize⼤于frame.size的时候,能够滚动。 缩放:⾃带缩放,可以指定缩放倍数。 2、UIScrollView滚动相关属性 contentSize //定义内容区域⼤⼩, contentSize>frame.size ,可以滚动 contentOffset //视图左上⾓距离坐标原点的偏移量 contentInset //视图内边界大小,或者说增加UIScrollView额外的滚动区域 scrollsToTop //滑动到顶部(点状态条的时候) pagingEnabled //是否整屏翻动 bounces //边界是否回弹 scrollEnabled //是否能够滚动 showsHorizontalScrollIndicator //控制是否显⽰⽔平⽅向的滚动条 showVerticalScrollIndicator //控制是否显⽰垂直⽅向的滚动条 alwaysBounceVertical //控制垂直⽅向遇到边框是否反弹 alwaysBounceHorizontal //控制⽔平⽅向遇到边框是否反弹 3

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

二次信任 提交于 2019-12-06 21:13:36
问题 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 {

iOS - load and switch between pages using UIPageContol

半腔热情 提交于 2019-12-06 17:24:54
I would like to use UIPageControl to navigate between different view controllers. I have 2 view controllers and another main view controller contains the UIPageControl . The 2 view controllers to be navigated between have been added as children to the main view controller. When I currently start the application, I see a blank screen. I used pageControl.currentPage = 0 but I am unable to understand why I am unable to see the views. Note that I do not want to use UIScrollView in my application. Edit - I have followed this tutorial http://www.wannabegeek.com/?p=168 But it uses scroll view. I do

UIPageControl custom class - found nil changing image to the dots

[亡魂溺海] 提交于 2019-12-06 14:37:52
问题 I need to implement a UIPageControl with custom images instead the normal dot. So I create a custom class and connect it through the storyboard. Since ios7 the subview of UIPageControl contain UIView instead of UIImageView . The subviews of the resulting UIView ( UIIpageControl subviews) doesn't contain any subviews so I receive the error: fatal error: unexpectedly found nil while unwrapping an Optional value . Where I might have been wrong? class WhitePageControl:UIPageControl{ let

IOS之[UIPageControl:引导页]

强颜欢笑 提交于 2019-12-06 13:49:30
1.UIPageConrol API @property(nonatomic) NSInteger numberOfPages //>>页数 @property(nonatomic) NSInteger currentPage //>>当前页 @property(nonatomic) BOOL hidesForSinglePage //>>单页是否显示PageControl @property(nullable, nonatomic,strong) UIColor *pageIndicatorTintColor //颜色 @property(nullable, nonatomic,strong) UIColor *currentPageIndicatorTintColor //当前页的颜色 2.引导页制作 动画效果+代码参照: http://code4app.com/ios/ZWIntroductionViewController/54e1cb82933bf0212f8b5fbe 所需控件:UIScrollView + UIPageControl 需要一下几个步骤 1.初始化自定义ViewController 2.添加背景图 3.添加UIScrollView 4.添加PageControl 5.添加前景图 6.实现UIScrollViewDelegate 2

Swipe to change views

ぃ、小莉子 提交于 2019-12-06 03:17:39
问题 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

UIScrollView 和UIPageControl 实现app启动滑动图

本小妞迷上赌 提交于 2019-12-05 19:34:18
一、使用 NSUserDefaults 判断滑动图有没有出现过,加载滑动图 NSUserDefaults 简介: NSUserDefaults可以将数据 永久的保存 在手机中,他是一个单例,用起来很方便,所以很适合用于 保存简单的数据 和为 数据做标记。 更多的关于 NSUserDefaults的介绍请看: NSUserDefaults 简介 你可以选择在 AppDelegate.m 中的 didFinishLaunchingWithOptions 方法或者“初始界面”(加载的第一个viewController)的 viewDidLoad 方法中进行判断滑动图是否出现过,写上代码: NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults]; //判断滑动图是否出现过,第一次调用时“isScrollViewAppear” 这个key 对应的值是nil,会进入if中 if (![@"YES" isEqualToString:[userDefaults objectForKey:@"isScrollViewAppear"]]) { [self showScrollView];//显示滑动图 } 二、初始化 UIScrollView 和 UIPageControl 为启动滑动图做准备 UIScrollView

UIPageControl + UIAppearance

☆樱花仙子☆ 提交于 2019-12-05 17:20:07
The docs for UIAppearance is extremely poor. I want to customize the colours for a UIPageController, but I am unable to figure out which properties to set. When I go [UIPagecontrol appearance] set I get probably hundreds of options, so it's nearly impossible to figure out what's what. I would assume it's possible with UIAppearance proxy, right? Thank you UIAppearance protocol was added to UIPageControl as of iOS 6. The properties you can customise are: Dot tint colour Highlighted dot tint colour This is an excerpt from UIPageControl.h , as you can see these UIAppearance additions are only