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

[TIMOB-16121] Expose navBarHidden for iPad Split Window as per JIRA TIMOB-16121 #5643

Closed
wants to merge 3 commits into from

Conversation

jamesdlow
Copy link
Contributor

This is for changes suggested by an Appcelerator employee in the following JIRA issue:
https://jira.appcelerator.org/browse/TIMOB-16121

I have previously signed the Appcelerator Titanium contribution agreement.

@@ -146,6 +146,12 @@ -(BOOL)_handleClose:(id)args

-(void)viewWillAppear:(BOOL)animated
{
if (controller!=nil)
{
id navBarHidden = [self valueForUndefinedKey:@"navBarHidden"];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check if this [self valueForUndefinedKey:@"navBarHidden"] is not nil before going forward. Maybe it could go inside the if(controller != nil) statement.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't the TiUtils boolValue on the next line account for the nil, and return the default value (in this case NO) if its not present?

@pec1985 pec1985 self-assigned this Apr 23, 2014
@@ -146,6 +146,12 @@ -(BOOL)_handleClose:(id)args

-(void)viewWillAppear:(BOOL)animated
{
if (controller!=nil)
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curly bracket on the same line as the if

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok easy fix, will commit and do again after resolving your other comment.

@jamesdlow
Copy link
Contributor Author

Ok I've updated the file to reflect both your suggestions

@jamesdlow
Copy link
Contributor Author

Hi, I've fixed the issues. Can you please merge this in now?

Thanks,
James

@ingo ingo changed the title Expose navBarHidden for iPad Split Window as per JIRA TIMOB-16121 [TIMOB-16121] Expose navBarHidden for iPad Split Window as per JIRA TIMOB-16121 Jan 14, 2015
@ingo
Copy link
Contributor

ingo commented Jan 14, 2015

@pec1985 Ping. Could you merge this?

@vishalduggal
Copy link
Contributor

This is a piecemeal fix for the users specific issue. See PR #6603 which is a general fix for all TiWindowProxy objects.

@pec1985
Copy link
Contributor

pec1985 commented Jan 27, 2015

Thanks for your help. The fix has been added in PR #6603

@pec1985 pec1985 closed this Jan 27, 2015
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

Successfully merging this pull request may close these issues.

None yet

4 participants