In my iOS project I am reusing the same 3 different UI elements:
- Label
- Input
- Check Mark (or X).
And the logic is the same:
- Validate when user is entering text
- While verification fails, Red check mark, etc.
So, the next clear step is to do it again in a UIView so that I can simply drag and drop.
And I want it in a cocoa blossom.
Restructuring of elements in a UIview, etc. is not difficult, but I am stuck by putting this argument into coco fu. XIB does not load, so the subview is empty
I added IB_DESIGNABLE
to header file but there is no rendering and exceptions at runtime
suggestion? What do I post for help?
Edit:
My resource section of podspec
s.source_files = 'pod / classes / ** / *' s.resources = 'pod / property / ** / * 'S.resource_bundles = {' jawbreaker '=> [' PD / asset / *. PNG ']}UIView XIB file does not automatically load when you create a UIView class So you need something like this :.
MyView * view = [Myview loadFromNib];
Remember if you want to use IB_DESIGNABLE:
No comments:
Post a Comment