quemb / qmbtabs Goto Github PK
View Code? Open in Web Editor NEWTab View Controller just like Safari or mobile Chrome
License: MIT License
Tab View Controller just like Safari or mobile Chrome
License: MIT License
Needs some UX thought before considering coding:
-- Draft, please comment --
Questions:
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.
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."
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];
}
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)
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 \
Postscript: Obligatory badges meme
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;
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?
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.