Code Monkey home page Code Monkey logo

qmbtabs's People

Contributors

skull-squadron avatar tonimoeckel 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

qmbtabs's Issues

add tabbar to UIView

HI.

Is there any way to load these tabs in a UIView instead of main view?

for example I want these tabs to be implemented in a UIView instead of whole layout?

Crashes at runtime

xcode 4.6.3/ios 6.1. please resubmit to Cocoa Controls after this is fixed.

2013-07-29 17:07:16.088 QMBTabs Demo[59933:c07] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Storyboard (<UIStoryboard: 0x757a7d0>) doesn't contain a view controller with identifier 'SampleTabItemViewController''
*** First throw call stack:
(0x1cad012 0x10eae7e 0x476679 0xbafc 0x1101c7 0x110232 0x5f3d5 0x5f76f 0x5f905 0x68917 0x2c96c 0x2d94b 0x3ecb5 0x3fbeb 0x31698 0x1c08df9 0x1c08ad0 0x1c22bf5 0x1c22962 0x1c53bb6 0x1c52f44 0x1c52e1b 0x2d17a 0x2effc 0x1d7d 0x1ca5 0x1)
libc++abi.dylib: terminate called throwing an exception
(lldb)

The "changed to index" `NSLog` doesn't always fire in the demo.

Fix:

selectViewController In QMBTabViewController.m,

controller.view.superview == nil may need to also call didSelectViewController

That would be the following just before } else {:

        if ([self.delegate respondsToSelector:@selector(tabViewController:didSelectViewController:)]){
            [self.delegate performSelector:@selector(tabViewController:didSelectViewController:) withObject:self withObject:self.selectedViewController];
        }

Can't update badge number

Can't update badge number when set badge by @Property (nonatomic, strong, readonly) UILabel *textLabel;

To solve this problem by add some codes as follow:
// The badge text.
@Property (nonatomic, copy) NSString *badgeText;

  • (void) setBadgeText:(NSString *)badgeText
    {
    _badgeText = badgeText;
    self.textLabel.text = badgeText;
    [self setNeedsDisplay];
    }

Stacking UX

Current, stacked tabs completely obscure each other.

/ tab n-3 \
/ tab n-2 \
/ tab n-1 \

It seems desirable to offer an affordance like so the user can see there are others:

/ tab n-3 \
  / tab n-2 \
    / tab n-1 \

Don't call layoutSubviews directly

From Apple docs:
"You should not call this method directly. If you want to force a layout update, call the setNeedsLayout method instead to do so prior to the next drawing update. If you want to update the layout of your views immediately, call the layoutIfNeeded method."

Tab Sorting

Needs some UX thought before considering coding:

-- Draft, please comment --

  1. Tap and hold for time X
  2. While the hold gesture continues, the moving tab animates into it's new position
  3. When the gesture ends, the tabs stay.

Questions:

  1. Should there be a boolean 'unmovable' tab property?
  2. Should tabs optionally shake while being moved like Springboard icon reordering?

How can I use in swift?

I need to use this library in Swift. Is there any chance to upload this library to cocoapods so that users can use in Swift as well?
Thanks a lot.

Fixed width for Tab

Hi, is it possible to set a fixed width for tabs?

tabbar

I want it to show 4 tabs with all equal width (i.e. 80), can see the screenshot here even there is no title, it still allocate some space for it.

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.