Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get strange wrong when using oc invoke timeline.points #13

Open
mmmrt opened this issue Jan 30, 2018 · 1 comment
Open

get strange wrong when using oc invoke timeline.points #13

mmmrt opened this issue Jan 30, 2018 · 1 comment

Comments

@mmmrt
Copy link

mmmrt commented Jan 30, 2018

halo master
forgive my poor english
i get wrong when using oc invoke timeline

h file

@interface UserDetailViewController : UIViewController
@property (strong, nonatomic) IBOutlet ISTimeline *timeline;
@end

m file

- (void)viewDidLoad {
    [super viewDidLoad];
    self.timeline //Property 'points' not found on object of type 'ISTimeline *'
}

But other property of timeline is found except 'points'
could u tell me whats problem with that?

i notice something u might want to know as follow
ISTimeline.h

import UIKit

public class ISTimeline : UIScrollView {
    open var pointDiameter: CGFloat { get set }
    open var lineWidth: CGFloat { get set }
    open var bubbleRadius: CGFloat { get set }
    open var bubbleColor: UIColor
    open var titleColor: UIColor
    open var descriptionColor: UIColor
    open var points: [ITUserSample.ISPoint] { get set }
    open var bubbleArrows: Bool
    override public init(frame: CGRect)
    required public init?(coder aDecoder: NSCoder)
    override open func draw(_ rect: CGRect)
    override open func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?)
}

ISPoint.h

import UIKit

public class ISPoint {
    open var title: String
    open var description: String?
    open var pointColor: UIColor
    open var lineColor: UIColor
    open var touchUpInside: Optional<(_ point: ISPoint) -> Void>
    open var fill: Bool
    public init(title: String, description: String, pointColor: UIColor, lineColor: UIColor, touchUpInside: Optional<(_ point: ISPoint) -> Void>, fill: Bool)
    public convenience init(title: String, description: String, touchUpInside: Optional<(_ point: ISPoint) -> Void>)
    public convenience init(title: String, touchUpInside: Optional<(_ point: ISPoint) -> Void>)
    public convenience init(title: String)
}

@mmmrt
Copy link
Author

mmmrt commented Jan 30, 2018

i found the reason that ISPoint does not inherit from nsobject. which makes the property ‘points’ not define in ‘project-Swift.h’ file.

thx all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant