-
Notifications
You must be signed in to change notification settings - Fork 83
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
Storyboard? #5
Comments
The way to do this in storyboard should be the same as using it regularly. |
Drap and drop a generic view onto the storyboard. Then set a custom class for that generic view |
is there any way to use it using storyboard? |
Cool control but not sure how to get it working in a storyboard. You can not just drop a view onto the storyboard unless it is in a view controller. Wondering if there is a way to get it to work using a container view. http://stackoverflow.com/questions/11386111/uiview-outside-of-a-view-controller-in-a-storyboard |
And the ViewController.m: // #import "ViewController.h" @interface ViewController () @implementation ViewController @synthesize itemArray;
#pragma mark - Collapse Click Delegate // Required Methods -(NSString *)titleForCollapseClickAtIndex:(long)index {
} -(UIView *)viewForCollapseClickContentViewAtIndex:(long)index {
} -(void) jumpToImages { // Optional Methods -(UIColor *)colorForCollapseClickTitleViewAtIndex:(long)index { -(UIColor *)colorForTitleLabelAtIndex:(long)index { -(UIColor *)colorForTitleArrowAtIndex:(long)index { -(void)didClickCollapseClickCellAtIndex:(long)index isNowOpen:(BOOL)open { -(void)textFieldDidBeginEditing:(UITextField *)textField{
} #pragma mark - TextField Delegate for Demo /*
|
@david…thanks for the answer. Did not realize I could just drop a uiview into the list of components. . I tried it and sure enough it works but now I have no way of actually seeing the view in IB to lay it out. I can drag and drop controls in the list but can not actually see the view. Not much different than creating the views programatically. |
I did keep the collapseCell as an external nib. So, no more code than before. On Apr 27, 2014, at 5:45 AM, Pete Chmiel [email protected] wrote:
|
But how did you layout the controls on the different UIViews? If you can not see the view in a storyboard then I might as well just use the xib or create the view programmatically. right? |
I made nibs of each cell section. These are linked to the storyboard either through name identifiers or tags
|
ANy chance that there will be a storyboard example anytime soon?
The text was updated successfully, but these errors were encountered: