There is a pagecontrol and uipageviewcontroller in xamarin ios.
I need to create a coach screen for ios with a carouselview and a pageindicator .
I am not able to use uipageviewcntroller as the default transition style is not scroll and I am adding the pageviewcontroller programmatically.
So I have to go for pagecontrol with a scrollview.
I am not able to achieve that and facing some issue.
About the PageViewController, I have wrote a sample for others, you can take a look:
Xamarin.iOS implement PageController
You can add anything you want in any page's content view controller.
Hop it can help you.
Related
I know doing this requires the UIScrollView, but I do not know how to implement it. Just a simple horizontal paging app that you can slide between. It would be preferable to be able to do this in the storyboard view.
Ok I've decided to use the UIPageViewController after some research, thanks!
I would like to make similar effect that Facebook app has. So I would like to create navigation slide-out effect.
But when I place UIViewController with menu beneath parent UIViewController with content and then I move parent view aside my menu doesnt show up. Everything I can see is black screen. But menu frame is in the right position.
Any sugestion what should I do?
Content view will be separate UIViewControllers.
I was in the same situation than you and finally I used a custom class which is inspired on FaceBook and Wunderlist apps and is really simple to add into the project:
https://github.com/John-Lluch/SWRevealViewController
The child view controller is always above parent view controller's view.
I think the old and the new view controllers should be siblings and use a parent view controller to add them both.
In fact, the child controllers of native UINavigationController are siblings rather than child-parent relationship.
I would urge you not to do this on your own but to use one of the many libraries out there that have been heavily tested by many contributors. One of the good ones is MMDrawerController but there are many others. Take a look at cococontrols for many more examples.
I've previously implemented a similar mechanic to this using custom transitions, which were introduced in iOS7. For example: could present the menu modally, but using a custom transition have it appear from the left and only take up a proportion of the screen.
Using custom interactive transitions will also allow you to use a pan gesture recogniser to drag your main view controller back on top of your menu - like in the Facebook app.
Here's a good tutorial on Custom Transitions: http://www.thinkandbuild.it/ios7-custom-transitions/
I'm currently using this component in xamarin
http://components.xamarin.com/view/SidebarNavigation and basically it works fine, but when i try to use a UITableViewController as one of my content and add a lot of items in tableview that will basically make the app scroll, the app didn't actually scroll when you run it to iOS simulator, I haven't add any code yet to my contentController and I haven't change any property on my UITableView, just drag a UITableViewController from toolbox set up the code behind controller, storyboard ID, Restoration ID add some data to the tableView then hit run.
I don't know if this is a bug or I'm doing something wrong? any idea everyone? or you can just give me any free component that use as navigation drawer in iOS app.
thanks!
I think it's a bug!
You can solve it by wrapping your uitableview in a uiview.
Just make a fresh view controller and put a tableview as its only child!
Good luck ;)
I need to implement, sidemenu featured application.
I have added MFSideMenu library to my project. I am putting something to its containerviewcontroller in which there is a scrollview.
But scrollview does not scroll.
I am setting content size of scrollview in a method of view controller.
How can i solve this?
Note: I am using storyboard.
I solved this issue in my project by using a UITableViewController as a child view controller with 1 static UITableViewCell, it made me possible to design a screen as long as I needed.
How can I present a UINavigationController with navigation bar like a popover on iPhone using custom UIViewController transitions introduced in iOS 7?
I accomplished this with a standard UIViewController and transition animator:
http://www.bytolution.com/Screenshot%202013.11.02%2015.25.34.png
When trying the same with UINavigationController instead, this is the result:
http://bytolution.com/Screenshot%202013.11.02%2015.27.10.png
At WWDC session 218 (login required) an Apple engineer made a demo of the exact thing I am trying to achieve:
http://bytolution.com/Screen%20Shot%202013-11-03%20at%2013.50.17.png
Unfortunately I could not find the sample code anywhere.
If you want to take a look at my code visit Github.com/bytolution/Apsiape
Thanks in advance!
I would take a look at WYPopoperController which does what you want on iPhone: https://github.com/nicolaschengdev/WYPopoverController
iPhone does not support the UIPopoverController class and all Modal transitions are full screen. Yet obviously the screen shot you showed exists.
Any view controller can have its view extracted and shown within another view. That is what's been done there. A black view is placed over the background with 30% opacity and the "popover" view is added on top of that. For added effect, a tap gesture recognized can be added to the black masking view to dismiss the popover when the user taps off of it.
I finally figured out how to do it on my own. I refined my Google search and found the trick to be an embedded UINavigationController. This was also useful for custom view controller transitions as it works nicely. You might want to check out this stackoverflow.com question.
If you need the code, it's in my project on GitHub.