yannickl / YLProgressBar

UIProgressView replacement with an highly and fully customizable animated progress bar in pure Core Graphics
http://yannickloriot.com/library/ios/ylprogressbar/
MIT License
1.28k stars 186 forks source link

Using YLProgressBar with auto-layout? #44

Open chungfk opened 8 years ago

chungfk commented 8 years ago

Hi, in my app, I'm implementing auto-layout. When i try to implement YLProgressBar in my xib file, i'm getting "Failed to load designables from path (null)".

Can the question is how can i use this library in xib that contains auto-layout?

yannickl commented 8 years ago

Hi,

Yes you can use this library in xib that contains auto-layout. However I have to investigate why it does not work in interface builder.

chungfk commented 8 years ago

@yannickl an update...i've tried manually inserting the library and there is no error. Only through cocoa pods did the above error happened.

yannickl commented 8 years ago

That's strange, may be interface builder does not load framework like current project one. I need more time to investigate why.

Thank you for the report! 👍

chungfk commented 8 years ago

Hi, sometimes i'm also getting this error in my storyboard but it won't cause the build to fail.

"IB Designables: Failed to update auto layout status: The agent raised a "NSInvalidArgumentException" exception: *\ setObjectForKey: object cannot be nil (key: NSParagraphStyle)"

radekwilczak commented 6 years ago

I have the same error as chungfk :(