ermalkaleci / carbonkit Goto Github PK
View Code? Open in Web Editor NEWCarbonKit - iOS Components (Obj-C & Swift)
License: MIT License
CarbonKit - iOS Components (Obj-C & Swift)
License: MIT License
Hi guys,
Is it possible to develop this future? I will try to have a look and maybe do some bits and pieces myself.
Thanks
As stated in the title. I have a single subclass of UITableViewController that I am instantiating multiple times (holding different subsets of data in each). I have a UISearchController initialized in the viewController, and the tableView.tableHeaderView is set as searchController.searchBar.
`
let searchController = UISearchController(searchResultsController: nil)
override func viewDidLoad() {
super.viewDidLoad()
// Set up the search bar
searchController.searchResultsUpdater = self
searchController.dimsBackgroundDuringPresentation = false
searchController.hidesNavigationBarDuringPresentation = false
definesPresentationContext = true
tableView.tableHeaderView = searchController.searchBar
}
`
If I click into the search field and start searching, and then switch view controllers by swiping or clicking on a new one, I get a crash.
From the debugging output, it looks like there is an exception thrown:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Unexpected subviews'
could you plz make it pod
it's possible enable this function?
I would like to know how we can obtain a slide/swipe animation between the views when a tab item is tapped on. As of now it simply changes the view without animation when tapped.
Please help me out with this.
Thanks in advance!
I used example 1 and added 4 tabs into segment. Then I flipped quite fast between tabs. The example was hung.
I tested on Ipad Air iOS 9.2
Hello !
This happens when I move away from the controller containing the refresh control.
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** +[NSLayoutConstraint constraintWithItem:attribute:relatedBy:toItem:attribute:multiplier:constant:]: A multiplier of 0 or a nil second item together with a location for the first attribute creates an illegal constraint of a location equal to a constant. Location attributes must be specified in pairs' *** First throw call stack: (0x184ebc2d8 0x1966e00e4 0x184ebc218 0x185e9decc 0x185d25ad0 0x10017d14c 0x1898f82bc 0x1898f6e54 0x1898f9c20 0x184d99458 0x184da5a18 0x1966f9724 0x184d9d074 0x1898f079c 0x184e742a4 0x184e71230 0x184e71610 0x184d9d2d4 0x18e5b36fc 0x189962fac 0x100175390 0x196d5ea08) libc++abi.dylib: terminating with uncaught exception of type NSException
Your code is awesome.But how to set the second index as the initial view?Thanks.
I have 4 major tabs in each tab, I insert 2 or 3 small tab , and then I started flip, the small tabs tabs not be made that big jump over the right tab . how to fix this
Project demo: https://www.dropbox.com/s/mmq5umaxq6r6ka5/PageMenuDemoStoryboard.zip?dl=0
Hello,
i face one issue when i hide navigationbar hidden and i create custom view of at top than i want to show your controller?
Thanks,
Mohsinali
I want to disable the swiping so that the controllers can only be selected by tapping the tab titles. As one of my child view controllers is going to have a horizontal scrolling collection view.
Or is it going to be fine? Thanks
Hi there,
It seems there is a retain cycle on line 61 of CarbonTabSwipeNavigation.m:
rootViewController = viewController;
Since rootViewController is an instance variable, which is strong by default, the child view controller is retaining the parent view controller.
An easy fix is to make the rootViewController instance variable weak on line 38:
__weak UIViewController *rootViewController;
This then allows the parent to dealloc correctly (e.g. when the root view controller is popped off the navigation stack).
Thanks a lot, and great library so far!
Tabs width problem
I would like to be able to modify the tab page collection at runtime.
Hi, thank you for the amazing library?
This is not an issue.
Can you please tell me how do I make the navigation bar and the tab bar control which has all the swipe options the same color, I went through the code but could not find how to set the color for tab bar.
Thank you for your help.
I have a problem in Swift, my problem is with necessary array, i receive this error....
* Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* setObjectForKey: object cannot be nil (key: 0)'
My code is this
var names = ["About Redar", "Privacy Policy", "Terms of Use"]
tabSwipe = CarbonTabSwipeNavigation()
tabSwipe.createWithRootViewController(self, tabNames: names, tintColor: UIColor.redColor(), delegate: self)
tabSwipe.setNormalColor(UIColor.whiteColor())
tabSwipe.setSelectedColor(UIColor.blueColor())
Somebody with the same error?
Likes the video Thanks
pageview_Issue.zip
did you remove targetview in the latest version?
I cant determine the targetview for more customization
Using cocoapods, it doesn't install the version 2.0 but any other. When adding the version number to the podfile it spits an error.
I want to scroll my tableview back to the top when the user clicks a second time on the current tab. What would be the best way to do this.
Thanks!
(I'm using swift)
I have 4 major tabs in each tab, I insert 2 or 3 small tab , and then I started flip, the small tabs tabs not be made that big jump over the right tab . how to fix this
Project demo: https://www.dropbox.com/s/mmq5umaxq6r6ka5/PageMenuDemoStoryboard.zip?dl=0
When CarbonTabSwipeNavigation is added dynamically, there is no indicator.
I have a uicollectionviewcontroller , I put uicollection is UICollectionViewScrollDirectionHorizontal , while moving in uicollection , carbon will move and scroll to another page, thanks
dispatch_func not called at defined time 0.5s and 1.5s
i want to add tab bar to bottom. How can i do this? Yani tab barı ekranın alt kısmına nasıl alırım? ;)
Refresh don't work while one item on list available.
I'm building an application that uses navigation drawers on both sides, I would love to have the ability to remove the swipe gesture when I'm on the first and the last tabs, I'm using delegates to detect the slides but I would like to programmatically enable or disable the scrolling of the tabs
Is there any way to do this?
Selamlar Ermal Abi, thank you so much for the library, the functionality here is exactly what I was looking for. However, I am struggling to get it working in swift using the bridging file route. I have started by trying to create a very simple version of your example document to try and figure out where the issue is however this hasn't helped. Everything compiles and builds fine but the error is thrown during run time.
The code I am using is below and where the error is thrown is shown below. From what I can tell the line throwing the error is:
tabSwipe.createWithRootViewController(self, tabNames: names, tintColor: color, delegate: self)
Any help would be greatly appreciated. Thank you.
It's already done, I will commit after code reformat
When setting TabExtraWidth, the extra width is applied multiple times (on each redraw) which causes the tabs to grow endlessly.
My suggestion:
On CarbonTabSwipeSegmentedControl.m:77 add a flag which indicates if the extra width has been added already.
Hello.
I'am quite new in developing and having fun discovering stuff . Was wondering if it is possible to have the scrollView over my content and not on top.
I put an image on top over the statusbar (got some pain with this bar sometimes) and want to have some transparancy on the scrollview in order to put it over my imageview(and not having the image view under the scroll view and having a white status bar)
for now, gonna try to overload (don't know if it is the correct word in swift) your code and maybe play with offset.
i guess I have to play with constraint... but not used to write it in the code :D
Thanks anyway
This happen is iOS 7 if replace view controller with animation. I will let disabled for a while.
It looks not possible to use CarbonTabSwipeNavigation in an already UIViewController incase if we want to have a banner, header or simply any other UIView above Tabs. Its because CarbonTabSwipeNavigation inherits UIViewController which I believe restricts itself to be used as a part of some UIViewController beside other controls of UI instead it is a full fledge UIViewController.
Is there a way to use CarbonTabSwipeNavigation inside as a control in UIViewController? Like this:
There's an issue when displaying the tabs in RTL, if you start swiping the library starts Highlighting the TAB on the other direction, and the indicator keeps resizing to the size of the tab opposite to the direction of swiping.
e.g.
In LTR:
| VERY WIDE TAB 1 | TAB 2 | LONG TAB 3 |
--------
Swiping in this direction ------>
When swiping from TAB 2 to to TAB 3, the indicator keeps resizing to TAB 3's size until you lift your finger and it stops smoothly, also during the swipe TAB 3, keeps getting the highlighted color until it transitions completely.
now in RTL:
| LONG TAB 3 | TAB 2 | VERY WIDE TAB 1 |
--------
<--------- Swiping in this direction
When Swiping again from TAB 2 to TAB3 the following happens:
1-While swiping the indicator keeps resizing to fit the width of "TAB 1" not TAB 3, and also TAB 1 keeps getting the highlight color,
2-Once you lift your finger the indicator corrects itself to the size of TAB3 and the highlight is set on TAB 3, (and this happens suddenly so it looks so flickering).
Is there a way to change the current tab programatically?
e.g. like using [self.tabBarController setSelectedIndex:1]; when you are using a tab bar controller
I have 10 pages and want to allow the user to go to the next screen with a button. So I set the current index with the method:
[carbonTabSwipeNavigation setCurrentTabIndex:2];
But when I go from tab 1 to 2 the scroll animation is from right to left and not from left to right.
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'An instance 0x14e86de00 of class UITableView was deallocated while key value observers were still registered with it. Current observation info: <NSKeyValueObservationInfo 0x170845ee0> ( <NSKeyValueObservance 0x1702cb130: Observer: 0x0, Key path: contentOffset, Options: <New: YES, Old: NO, Prior: NO> Context: 0x0, Property: 0x174245c70> <NSKeyValueObservance 0x1702d4900: Observer: 0x0, Key path: contentSize, Options: <New: YES, Old: NO, Prior: NO> Context: 0x0, Property: 0x170449780> <NSKeyValueObservance 0x1702caf70: Observer: 0x0, Key path: frame, Options: <New: YES, Old: NO, Prior: NO> Context: 0x0, Property: 0x17045d880> <NSKeyValueObservance 0x1702cb130: Observer: 0x0, Key path: contentOffset, Options: <New: YES, Old: NO, Prior: NO> Context: 0x0, Property: 0x174245c70> <NSKeyValueObservance 0x1702d4900: Observer: 0x0, Key path: contentSize, Options: <New: YES, Old: NO, Prior: NO> Context: 0x0, Property: 0x170449780> <NSKeyValueObservance 0x1702caf70: Observer: 0x0, Key path: frame, Options: <New: YES, Old: NO, Prior: NO> Context: 0x0, Property: 0x17045d880> )' *** First throw call stack: (0x1825bc2d8 0x193de00e4 0x1825bc218 0x183441810 0x10003edc4 0x193ddeb1c 0x193debf38 0x193debf90 0x18734391c 0x186ff9e50 0x187165cc4 0x10003be08 0x182499458 0x1824a5a18 0x193df9724 0x18249d074 0x182573e1c 0x182571828 0x18249d2d4 0x18bcb36fc 0x187062fac 0x10011067c 0x19445ea08) libc++abi.dylib: terminating with uncaught exception of type NSException
Hi, I'd like to know if it's possible to load every tabs once, to navigate flawlessly between them (and not one by one when you switch them).
Thanks
Hi,
I have a problem on iOS7 only with my customers. Im receiving the error that is a bug on iOS7 and it is a common error but i tried without success solve it.
Can you help me?
Thanks
.
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.