Skip to content

View #4

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

Open
oscarbc96 opened this issue Sep 22, 2014 · 10 comments
Open

View #4

oscarbc96 opened this issue Sep 22, 2014 · 10 comments

Comments

@oscarbc96
Copy link

Hi, if it's possible to substitute the custom text view for a simple view or do different custom cells (because i don't know how to do) and make the navbar transparent?
Thanks a lot.

@pyro2927
Copy link
Owner

pyro2927 commented Oct 7, 2014

Within the header or as the content below?

@oscarbc96
Copy link
Author

image

@oscarbc96
Copy link
Author

I do it ading a toolbar as a navigation controller but do the same with the navigation controller

@ghost
Copy link

ghost commented Nov 24, 2014

@TGnA How did you get to use a view instead of the TextView?

@oscarbc96
Copy link
Author

Hi, in the custom header view uses this code

- (UIScrollView*)contentView{ textView = [[UITextView alloc] initWithFrame:CGRectZero]; textView.scrollEnabled = NO; textView.editable = NO; textView.text = @"blabla"; textView.contentSize = CGSizeMake(CGRectGetWidth(self.view.frame), 600); return textView; }

I changed:
textView = [[UITextView alloc] initWithFrame:CGRectZero];
to
variable_name = [[UIScrollView alloc] initWithFrame:self.view.bounds];

and inside the scroll view you add the elements.
If you don't understand say me.

@ghost
Copy link

ghost commented Nov 24, 2014

Hi! Thanks for the response!

i already did that, but did you create all the elements programmatically?

@oscarbc96
Copy link
Author

Yes, I create programmatically and then I add it to the subview

@ghost
Copy link

ghost commented Dec 1, 2014

i was trying to add a Storyboard Created View, but doesn't seems to work.

Thank you!

@soniacasas
Copy link

Hi @TGnA can you paste your contentView void?

i'm Adding the Scroll but the contentView is just Black... Can you Help me? Thanks!

@oscarbc96
Copy link
Author

- (UIScrollView*)contentView{
    self.view.backgroundColor = [UIColor whiteColor];
    CGRect bounds = self.view.bounds;

    self.scrollViewText = [[UIScrollView alloc] initWithFrame:self.view.bounds];
    self.scrollViewText.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
    self.scrollViewText.scrollEnabled = NO;

    //  Create View. Everything will be rendered within this view


    [self.scrollViewText addSubview: ViewCreatedBefore];

    return _scrollViewText;
}

- (void)viewDidLoad
{
    [super viewDidLoad];

    [self.scrollViewText addSubview: SomethiingCreatedBefore];

}

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

3 participants