taphuochai / phairviewcontroller Goto Github PK
View Code? Open in Web Editor NEWMenu like airbnb app
License: MIT License
Menu like airbnb app
License: MIT License
I want to integrate the AirViewController in my android application, is it possible ? if yes then please provide sample.
Thanks
First, thanks for the amazing side menu source code.
I have added a button to menu view controller which is a subclass of PHAirViewController.
When I tap on the button, its action method not getting called.
I need the menu view controller exactly like airbnb app. Attached the screenshot for your reference.
i.e I need a navigation bar and a signup/signin button.
Please suggest.
When I have the left menu open and want to close it with the effect of as I drag slowly it also closes slowly, I am trying to swipe from right to left to close it, like the airbnb app. Can you assist, please?
Unable to compile for iPhone 5s and above
When i used UITableViewController in UINavigationStack, it worked fine in foreground. But loading a UITableViewController and then unLoad UITableViewController. Now pressing iPhone Home Button crashed the application with this error:
[UITableViewController applicationWillSuspend]: message sent to deallocated instance.
Now, tell me what to do with this?
Right now there is an endless scroll of menu items, I am trying to make it so that I only have one set of menu items and it does not scroll to multiple ones. Can you please assist?
Hi, PHAirViewController was assume. Actually, I was planing to use it in my universal app. Is it possible to make it supported with iPad in both orientation?
Hello,
Did you try to do it in swift ?
When I added the files to my project I get 10+ errors similar to this one:
error: property 'height' not found on object of type 'UIView *'
Any ideas?
Thanks
Hi, this is a good project. Thanks!
I tried to use cocoapods to integrate PHAirView into my project.
However, when I "pod install" from my command line tool, it shows "Unable to find a specification for PHAirView
depended upon by Podfile".
I went to the official site of Cocoapods and couldn't find PHAirView there.
Would you willing to take a look at that?
Thanks in advance.
In Demo2, PHMenuViewController.m,
if numberOfSession is 1, buttons(Row 0 in 0, Row 1 in 0...) of left view, is not operated.
not change color of PHViewController.
In case of 2 is operate properly.
In case of 2, catch breakpoint in rowDidTouch method but
case 1 can not catch breakpoint in rowDidTouch method.
I can't say in which cases it happend but closing shown UIAlertView
causes crash with PHAirViewController in a project.
UIAlertView *dialog = [[UIAlertView alloc] initWithTitle:@"Title" message:nil
delegate:nil cancelButtonTitle:@"Ok" otherButtonTitles:nil];
[dialog show];
When I open the menu the navigation and tool bars turn black. How can I fix this?
Thank you very much for the side menu source code.
I've added a ViewController (named: PHabcViewController), I would like to switch from root view to PHabcViewController. As you can try the attached sample project code, when I jumped from root view to PHabcViewController, it works fine. However, when I Back from PHabcViewController to root view, the project broke immediately. Would you give some advise?
I've tried the below methods to implement Back to root view, unfortunately, none of them works...
Appreciate if anyone can give help on this issue, many thanks!
I needed a place on the menu for my user to logout, so I added a button in the bottom right hand corner of the menu view, but the segue won't work to go to the login screen. How can I leave the menu and go to another view without using a menu item?
Thanks
Easy bug:
lastIndexInSession[@(currentIndexSession)] = @(button.superview.tag);
it should be instead:
lastIndexInSession[@(currentIndexSession)] = @(button.tag);
Otherwise, you store the sessionIndex-> sessionIndex
Everything works fine until I go a viewcontroller that has a text filed with a toolBar, as following code. I type something in the textfield and resignFirstResponder and click on the textfield again, app crash. But if i comment [MyTextField setInputAccessoryView:toolBar]; the app doesn't crash, any idea about the problem?
UIToolbar *toolBar=[[UIToolbar alloc]init];
[toolBar setBarStyle:UIBarStyleBlackTranslucent];
[toolBar sizeToFit];
// UIBarButtonItem *flexButton=[[UIBarButtonItem alloc]initWithBarButtonSystemItem:UIBarButtonSystemItemCancel target:self action:nil];
//
// UIBarButtonItem *doneButton=[[UIBarButtonItem alloc]initWithBarButtonSystemItem:UIBarButtonSystemItemDone target:self action:@selector(resignKeyboard)];
//
// NSArray *itemsArray=[NSArray arrayWithObjects:flexButton,doneButton, nil];
// [toolBar setItems:itemsArray];
[MyTextField setInputAccessoryView:toolBar];
When changing the screen orientation, PHAirViewController is not adjusting position
It's better if SessionView init and buttons init are moved outside,
give us a delegate and datasource
Is there a way to support right navigation menu with minimal code changes? When user tap on right navigation menu, the main screen will slide to left and show the menu on right.
Please suggest.
Hi! @TaPhuocHai
You will achieve in the future similar to the effect of this picture?
https://f.cloud.github.com/assets/1969908/1961154/d113b266-8268-11e3-8505-df10b44ebec7.gif
This link show you animation effect:
http://dribbble.com/shots/1188335-Sidebar-transition
Jack
Hi Please help me to solve this problem
I selected first button 1 in session1. It show a viewcontroller. From that viewcontroller i want to go button 1 in session 1' s view controller without opening to left view, after that i open left then button 2 in session 1 must be selected.
When app lunch row 1 in 0 was selected as default, i want change that to row2 in 0 or row 1 in 1 depence on user condition, every time First view controller selected as default. How to change this to another (second view controller as selected and set row 1 in 0 as hilighted ). Please help me to solve this problem. i'm not an experienced developer in ios
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.