Code Monkey home page Code Monkey logo

uinavigation-sxfixspace's People

Contributors

spicyshrimp avatar unknown-undefined avatar wolfxu 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

uinavigation-sxfixspace's Issues

ios 11以下 左边往右偏移了位置 右边往左偏移了位置

UIBarButtonItem * backItem = [UIBarButtonItem itemWithTarget:nil action:nil image:[UIImage imageNamed:@"back_Image"]];
self.navigationItem.leftBarButtonItem = backItem;
这是创建按钮的代码 iOS11的位置正常, 11以下 我用iOS 9 的试了下 位置就不正常了

在ios13上奔溃

最近收到谷歌奔溃统计,显示在此奔溃率挺高的,你能知道问题所在吗?急急急...
image

ios 13闪退了

UINavigationSXFixSpace.m里面的sx_layoutSubviews方法,死循环调用了

Crash:The item state should have been data updated before updating its placement

0 CoreFoundation
-[NSInvocation invokeSuper] + 88
1 libobjc.A.dylib
objc_exception_throw + 60
2 CoreFoundation
-[__NSCFCalendar __findMatchingDate:afterStartDate:matchingComponents:goingBackwards:findLastMatch:options:] + 728
3 Foundation
-[NSProgress _notifyRemoteObserversOfValueForKeys:] + 248
4 UIKitCore
-[_UIStatusBarDisplayItemState updatePlacement] + 292
5 CoreFoundation
-[_CFXNotificationRegistrar find:object:observer:enumerator:] + 648
6 UIKitCore
-[_UIStatusBar _updateRegionItems] + 80
7 UIKitCore
-[_UIStatusBar updateConstraints] + 68
8 UIKitCore
-[UIView(AdditionalLayoutSupport) _sendUpdateConstraintsIfNecessaryForSecondPass:] + 180
9 UIKitCore
-[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededCollectingViews:forSecondPass:] + 988
10 Foundation
-[NSLayoutAnchor nsli_lowerIntoExpression:withCoefficient:forConstraint:] + 912
11 UIKitCore
___100-[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededWithViewForVariableChangeNotifications:]_block_invoke + 104
12 UIKitCore
-[UIView(AdditionalLayoutSupport) _withUnsatisfiableConstraintsLoggingSuspendedIfEngineDelegateExists:] + 128
13 UIKitCore
-[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededWithViewForVariableChangeNotifications:] + 184
14 UIKitCore
-[UIView(AdditionalLayoutSupport) _updateConstraintsAtEngineLevelIfNeededWithViewForVariableChangeNotifications:] + 424
15 UIKitCore
-[UIView(Hierarchy) _updateConstraintsAsNecessaryAndApplyLayoutFromEngine] + 344
16 HouseKeeper
-[NSObject(SXFixSpace) sx_layoutSubviews] (UINavigationSXFixSpace.m:156)
17 UIKitCore
-[_UIStatusBar layoutSubviews] + 56
18 UIKitCore
-[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1308
19 libobjc.A.dylib
0x00000001c3bf6000 + 5204

sx_defaultFixSpace设置失效

新版1.1.2的item距离两端的间距sx_defaultFixSpace设置任何值都无效,还是默认0的间距。用你的demo测试的也是这样。

能否支持pod呢?

项目中免不了需要用到第三方,用pod导入的,这样后面好维护项目

在iphone13 pro上距离设置失败

RT,设置为13,左右各一个按钮,距离屏幕两边的间距变为了9,少了4px。系统为15.2,iphone x 系统15.1,无此问题,不像是15.0导致的,是否是iphone13的问题?

迫切希望加个hook黑名单功能

感觉侵入性太大,会导致一些有导航栏的第三方库受到牵连,影响三方库的导航显示,能否加个hook黑名单功能,加入黑名单的类不受这个category的影响

导致iOS11以下系统setTitleTextAttributes方法无效

iOS11系统此方法正常,iOS11系统以下:
[self.navigationItem.rightBarButtonItem setTitleTextAttributes:@{NSFontAttributeName: [UIFont systemFontOfSize:15], NSForegroundColorAttributeName : [UIColor whiteColor]} forState:UIControlStateNormal];
设置无效

setLeftBarButtonItems 和 setRightBarButtonItems 这两个方法替换内部没有做系统版本区分。

-(void)sx_setRightBarButtonItems:(NSArray<UIBarButtonItem *> *)rightBarButtonItems{
if (rightBarButtonItems.count) {
NSMutableArray *items = [NSMutableArray arrayWithObject:[self fixedSpaceWithWidth:[UINavigationConfig shared].sx_defaultFixSpace-20]];//可修正iOS11之前的偏移
[items addObjectsFromArray:rightBarButtonItems];
[self sx_setRightBarButtonItems:items];
} else {
[self sx_setRightBarButtonItems:rightBarButtonItems];
}
}

如果外部直接调用,没有做系统版本的区分,会导边距调整失效。

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.