Skip to content
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.

Commit

Permalink
删除 UIView+StoryBoard类中的IB_DESIGNABLE宏
Browse files Browse the repository at this point in the history
  • Loading branch information
rakuyoMo committed Sep 21, 2017
1 parent 90e0f63 commit a791487
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
**注意:**`1.4.0`之前的版本集成了自己写的一些控件,从`1.4.0`版本开始,这些控件不再集成到`RKOTools`库中了,将会单独提供并支持`CocoaPods`。该页面则做目录之用,将会列出所有控件。

<p align="center">
<a href=""><img src="https://img.shields.io/badge/pod-v1.4.1-brightgreen.svg"></a>
<a href=""><img src="https://img.shields.io/badge/pod-v1.4.2-brightgreen.svg"></a>
<a href=""><img src="https://img.shields.io/badge/ObjectiveC-compatible-orange.svg"></a>
<a href=""><img src="https://img.shields.io/badge/platform-iOS%208.0%2B-ff69b5152950834.svg"></a>
<a href="https://github.com/rakuyoMo/RKOTools/blob/master/LICENSE"><img src="https://img.shields.io/badge/license-MIT-green.svg?style=flat"></a>
Expand Down Expand Up @@ -277,9 +277,9 @@ UIKIT_EXTERN NSString * const baseURL;

原先 `CALayer+Additions`的代替品。

`UIView`的分类。使用`IB_DESIGNABLE``IBInspectable`,可以在`StoryBoard`中快速设置视图**圆角****边框**以及**阴影**
`UIView`的分类。使用~~`IB_DESIGNABLE`~~`IBInspectable`,可以在`StoryBoard`中快速设置视图**圆角****边框**以及**阴影**

并且提供一个空白的`UIView`子类`RKOBaseStoryBoardView`,如果您在`StoryBoard`中的空白`UIView`需要**所见即所得**,那么可以选择关联到该类上。
~~并且提供一个空白的`UIView`子类`RKOBaseStoryBoardView`,如果您在`StoryBoard`中的空白`UIView`需要**所见即所得**,那么可以选择关联到该类上。~~

具体来说我们提供的属性如下:

Expand All @@ -302,12 +302,14 @@ UIKIT_EXTERN NSString * const baseURL;

![](https://github.com/rakuyoMo/RKOTools/raw/master/READMEImage/[email protected])

- 注意:如果您有如下警告,请在`podfile`文件中添加`use_frameworks!`语句
~~- 注意:如果您有如下警告,请在`podfile`文件中添加`use_frameworks!`语句~~

```shell
IB Designables: Failed to render and update auto layout status for WANBaseVi....
# IB Designables: Failed to render and update auto layout status for WANBaseVi....
```

- **注意:**`Xcode 9` 以及 `iOS 11` 中, `IB_DESIGNABLE` 宏在 `Objective-C` 中依然存在bug,且暂时无法修复,故该控件还是放弃使用了这个宏。其衍生基类暂时保存。

---------------------------------------------------------------------

### ImageWithColor
Expand Down
2 changes: 1 addition & 1 deletion RKOTools.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
Pod::Spec.new do |s|

s.name = "RKOTools"
s.version = "1.4.1"
s.version = "1.4.2"
s.summary = "One of your own tool libraries"
s.description = <<-DESC
One of your own tool libraries
Expand Down
2 changes: 1 addition & 1 deletion RKOTools/UIView+StoryBoard/UIView+StoryBoard.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#import <UIKit/UIKit.h>

IB_DESIGNABLE
//IB_DESIGNABLE // iOS 11 中OC依然没有修复这个宏的bug,所以还是注释掉吧

/** 方便在StoryBoard中为UIView设置样式属性。 */
@interface UIView (StoryBoard)
Expand Down

0 comments on commit a791487

Please sign in to comment.