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

Add triangle position, type and size customization options #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

XBeg9
Copy link

@XBeg9 XBeg9 commented Aug 17, 2014

No description provided.

/*start at the top of the nextYPosition, but dont increment the yposition, so this means the triangle sits on top of the topscroller and cuts into it a bit*/
triangleFrame = CGRectMake(self.view.frame.size.width/2-(self.triangleSize.width/2), nextYPosition, self.triangleSize.width, self.triangleSize.height);
} else if (self.triangleType == TTTriangleTypeBottom) {
triangleFrame = CGRectMake(self.view.frame.size.width/2-(self.triangleSize.width/2), nextYPosition - self.triangleSize.height, self.triangleSize.width, self.triangleSize.height);
Copy link

Choose a reason for hiding this comment

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

This doesn't work for me, the triangle's frame Y value is incorrect, and works better with the following:

triangleFrame = CGRectMake(self.view.frame.size.width/2-(self.triangleSize.width/2), nextYPosition + self.titleScrollerHeight - self.triangleSize.height, self.triangleSize.width, self.triangleSize.height);

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.

2 participants