Coder Social home page Coder Social logo

sebastienmichoy / msslidingpanelcontroller Goto Github PK

View Code? Open in Web Editor NEW
271.0 271.0 45.0 5.84 MB

[DEPRECATED] Integrate easily a sliding panel controller mechanism in your project!

License: BSD 3-Clause "New" or "Revised" License

Ruby 1.31% Objective-C 98.69%
ios objective-c sliding-panel-controller

msslidingpanelcontroller's People

Contributors

ezaekiel avatar jk avatar ronnieliew avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

msslidingpanelcontroller's Issues

Add Shadow

How can I add shadow to left panel controller so that it looks different from centre view controller?

How to use delegate methods using storyboard

Hi. I implemented the control using the Storyboard. In reference to the example in the source, to "Center view" I have assigned a controller in which I imported "MSSlidingPanelController.h" and I added the delegate "MSSlidingPanelControllerDelegate." In the implementation file I added the delegate method

  • (void) slidingPanelController: (MSSlidingPanelController *) panelController beginsToBringOutSide: (MSSPSideDisplayed) side
  • (void) slidingPanelController: (MSSlidingPanelController *) panelController hasClosedSide: (MSSPSideDisplayed) side
  • (void) slidingPanelController: (MSSlidingPanelController *) panelController hasOpenedSide: (MSSPSideDisplayed) side

but they do not run (XCode does not return any error). In other words, how should I proceed to execute the methods of the delegate using storyboard? Can you give me some guidance in this regard? Thanks for the excellent work and accomplishments!

Include EmptySegue in POD?

First, thanks for the excellent library.

While I was integrating your lib with my project, I was following the storyboard guide and was stumped when it wasn't working despite how simple the setup was. After digging a bit I logged the exception from setViewsForStoryboard and saw:

Could not find a segue class named 'EmptySegue'

Ooops! Adding it made the example work. I for some reason assumed EmptySegue was part of the standard Apple kit. Perhaps adding it to the Pod would be appropriate?

Thanks,
Max

Disable Navigationbar panning

Hi ,
I'm using your control and I am having an issue when I push a view controller on centerviewcontroller and from pushedview if I swipe on top side I can see menu is opened. How do I prevent menu to open from pushed view controllers

Prevent or pass on swipe for right side.

Is there a way to prevent or pass on the event for a right side swipe? I only have a left panel and my center view uses a right swipe to delete rows from a tableview. It seems that MSSlidingPanelController is blocking the right swipe from getting to my center view's tableview.

Crash on IOS 8

im getting this error update i installed xcode 6.0.1

2014-09-21 09:35:30.363 KOC App[3078:40039] *** Assertion failure in -[UICTFont _scaledValueForValue:], /SourceCache/UIFoundation_Sim/UIFoundation-371/UIFoundation/iOS/UIFont.m:496
2014-09-21 09:35:30.379 KOC App[3078:40039] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'scaledValueForValue: called on a font that doesn't have a text style set'
*** First throw call stack:
(
0 CoreFoundation 0x03e1cdf6 __exceptionPreprocess + 182
1 libobjc.A.dylib 0x03702a97 objc_exception_throw + 44
2 CoreFoundation 0x03e1cc8a +[NSException raise:format:arguments:] + 138
3 Foundation 0x03377460 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 118
4 UIFoundation 0x080cbfe8 -[UIFont _scaledValueForValue:] + 263
5 UIKit 0x0288120c -[UITableViewHeaderFooterView _labelFrame] + 1639
6 UIKit 0x02883d62 -[UITableViewHeaderFooterView layoutSubviews] + 264
7 UIKit 0x021779c0 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 608
8 libobjc.A.dylib 0x03718771 -[NSObject performSelector:withObject:] + 70
9 QuartzCore 0x00a9f27f -[CALayer layoutSublayers] + 152
10 QuartzCore 0x00a93105 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 397
11 QuartzCore 0x00a92f60 _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 26
12 QuartzCore 0x009f1676 _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 284
13 QuartzCore 0x009f2a3c _ZN2CA11Transaction6commitEv + 392
14 QuartzCore 0x00ab8789 +[CATransaction flush] + 52
15 UIKit 0x0211624b _afterCACommitHandler + 126
16 CoreFoundation 0x03d3ffbe CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION + 30
17 CoreFoundation 0x03d3ff00 __CFRunLoopDoObservers + 400
18 CoreFoundation 0x03d3593a __CFRunLoopRun + 1226
19 CoreFoundation 0x03d351ab CFRunLoopRunSpecific + 443
20 CoreFoundation 0x03d34fdb CFRunLoopRunInMode + 123
21 GraphicsServices 0x052e124f GSEventRunModal + 192
22 GraphicsServices 0x052e108c GSEventRun + 104
23 UIKit 0x020ece16 UIApplicationMain + 1526
24 KOC App 0x0013d7ad main + 141
25 libdyld.dylib 0x04f47ac9 start + 1
26 ??? 0x00000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)

CocoaPods

Hello! So I installed MSSlidingPanelController via CocoaPod. Below that you posted some code to "Create a MSSlidingPanelController". Where should I integrate that code? Or did CocoaPod already do that for me.

How to customise section?

Hello Sebastien, I couldn't find where I can customise section title background color, font and etc. Could you help me with that?

Navigation Bar issue

Perhaps this is more of an issue with how I have my segues and controllers set up in the storyboard, but I'm having an issue with the appearance of my navigation bar. I'm pushing the Sliding Panel Controller from a navigation controller'd view controller (just like the example with empty segues and with/without -doesn't matter- a nav controller to the center view), and it shows the "< back" nav button in the upper left. When I slide a panel view from the left or right, this navbar stays the same, with the back button as the only button, not moving at all. I don't have navigation controllers to the side panel views. Also any buttons I put on the center view do not appear. What could be going on here and how do I fix it? Thanks!

Doesn't resize tableview of left side view controller

It seems that there is a problem with resizing of at least the left panel view controller. I have an application with a black translucent tab bar. The left panel view controller is a subclass of UITableViewController. When the view is pushed on screen, the tableview is not resized properly resulting in the latest row not full displayed. It is as if the tableview doesn't realize that there is a tab bar.

In the screenshot attached, I scrolled the tableview as much as I could but the last row is partly visible.

ios simulator screen shot apr 15 2014 11 04 42

Storyboard usage

Using storyboard example, which code I have to write if I want open and close the slider tapping a button instead using gestures?

Navigation bar is unresponsive if app has status bar hidden

The view controller always adds a 20pt tall view where the status bar would be, even if the app has the status bar hidden.

In that case, that view will overlap the navigation bar (or whatever is below it) and intercept taps, so it will only be half-tappable.

MSSlidingPanelController must only add the status bar view if the status bar is visible and/or have a flag that can be set.

beginsToBringOutSide

I've been using this for a bit (great lib!), and i've just noticed something, maybe its just a misunderstanding. If I tap the centerview (not from a button) from the panel view (displayed)..There is no delegate to tell me that this is triggered in beginsToBringOutSide? I have to wait until hasClosedSide to change my center view?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.