Comments (11)
from carbonkit.
It crash the app when running on iOS7.
I'm dont using autolayout or interface builder and when i use ths library on iOS7 it crash with the errors that i show on link, is the same problem.
But on iOS8 it is working.
from carbonkit.
I did made i simple sample of the problem:
https://github.com/prsolucoes/CarbonKitError
from carbonkit.
The error happens on line:
- (void)didMoveToSuperview {
....
[self setTranslatesAutoresizingMaskIntoConstraints:NO];
....
}
If you comment, it dont crash, but the view is not centralized.
from carbonkit.
Library require auto-layout, anyway I will check what I can do.
from carbonkit.
I had added a README file on my sample repository to you see. Please, help me with this :(
from carbonkit.
You can not add CarbonSwipeRefresh as subview of tableView.
You need to add it on tableView container, like in the example
from carbonkit.
#import "ViewController.h"
@interface ViewController ()
{
UITableView *tableView;
}
@end
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
self.title = @"CarbonKit - Error - iOS7";
tableView = [[UITableView alloc] initWithFrame:self.view.frame style:UITableViewStylePlain];
[self.view addSubview:tableView];
[self enablePullToRefresh];
}
- (void)enablePullToRefresh
{
self.refresh = [[CarbonSwipeRefresh alloc] initWithScrollView:tableView];
[self.refresh setMarginTop:64];
[self.view addSubview:self.refresh];
[self.refresh addTarget:self action:@selector(pullToRefresh:) forControlEvents:UIControlEventValueChanged];
}
- (void)pullToRefresh:(id)sender
{
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(3 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
[self.refresh endRefreshing];
});
}
@end
from carbonkit.
CarbonSwipeRefresh can't be child of tableView. It must be child of tableview parent. You need to add a tableView inside a viewController not directly in UITableViewController
this is the header or your example:
#import <UIKit/UIKit.h>
#import <CarbonKit/CarbonKit.h>
@interface ViewController : UIViewController
@property (nonatomic, retain) CarbonSwipeRefresh *refresh;
- (void)enablePullToRefresh;
- (void)pullToRefresh:(id)sender;
@end
replace UITableViewController with UIViewController
from carbonkit.
Ok, i have made the correction on project. It is working now, but i need put the code
if ([self respondsToSelector:@selector(edgesForExtendedLayout)])
{
self.edgesForExtendedLayout = UIRectEdgeNone;
}
I need it?
from carbonkit.
I closed this issue
from carbonkit.
Related Issues (20)
- iOS 13 Crash and just find issues.Please repair it as soon as possible. HOT 1
- iOS 13 Crash and just find issues.Please repair it as soon as possible. HOT 28
- iOS 13 Crash: returned nil from -traitCollection, which is not allowed. HOT 1
- swipe not work in iOS 13 HOT 2
- swipe not work in iOS 13 in real device but in simulator working fine HOT 1
- Tab no more scrollable HOT 4
- Get error when initial CarbonTabSwipeNavigation in iOS 10
- How to change selected tab background color ? HOT 1
- NSInternalInconsistencyException error in iOS 13.2.2 and Xcode 11.3.1 Beta HOT 10
- clear the selected colour of segment controller HOT 4
- Full screen - Notch issue
- Change Selected index Background color
- CarbonKit toolbar Position change
- Method "initWithItems:toolbar:delegate" marked as deprecated
- Why it is showing like default segment controls?
- target view was not working
- Add a mask when tab changes HOT 1
- carbon kit freezes rest of the app works fine HOT 1
- how can I change colour of bar it looks like this and as per our requirement we need white colour HOT 2
- Unable to swipe after tapped on any tab
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from carbonkit.