Git Product home page Git Product logo

Comments (13)

jasperblues avatar jasperblues commented on August 15, 2024

I think this is fixed - will confirm ASAP.

from ckuitools.

genericspecific avatar genericspecific commented on August 15, 2024

i think commit c6322c1 fixed it

d.

On Oct 4, 2013, at 8:02, Jasper Blues [email protected] wrote:

I think this is fixed - will confirm ASAP.


Reply to this email directly or view it on GitHub.

from ckuitools.

stanislaw avatar stanislaw commented on August 15, 2024

I've been following this issue for while and I wonder how could you ever reproduce it:

  1. @genericspecific, how can I spot the invocation of -[UITextView setSize:] method (the commit above mentions it explicitly). In which circumstances is it called by UITextView?
  2. @jasperblues, I tried my best to reproduce this both programmatically and using storyboards (I did it on 0.5.0 - a half year ago release). How did you ever do that?

I am wondering because I can't put up with the change c6322c1 commit introduces: UIView's property @SiZe to @viewSize renaming and want to see the real case where the need in such renaming becomes obvious.

Thanks.

from ckuitools.

jasperblues avatar jasperblues commented on August 15, 2024

Steps to reproduce:

  1. Install CKUITools via CocoaPods
  2. Create a project
  3. Programmatically add a UITextView to a UITableViewCell

Run. Enjoy.

from ckuitools.

jasperblues avatar jasperblues commented on August 15, 2024

http://stackoverflow.com/questions/16118106/uitextview-strange-text-clipping

from ckuitools.

stanislaw avatar stanislaw commented on August 15, 2024

OK, thanks for the fast response!

from ckuitools.

genericspecific avatar genericspecific commented on August 15, 2024

try this:

UITextView *tv = [[UITextView alloc] init];
NSLog(@"set size exists = %i" , [tv respondsToSelector:@selector(setSize:)]);

d.

On Oct 4, 2013, at 11:50, Stanislaw Pankevich [email protected] wrote:

I've been following this issue for while and I wonder how could you ever reproduce it:

@genericspecific, how can I spot the invocation of -[UITextView setSize:] method (the commit above mentions it explicitly). In which circumstances is it called by UITextView?
@jasperblues, I tried my best to reproduce this both programmatically and using storyboards (I did it on 0.5.0 - a half year ago release). How did you ever do that?
I am wondering because I can't put up with the change c6322c1 commit introduces: UIView's property @SiZe to @viewSize renaming and want to see the real case where the need in such renaming becomes obvious.

Thanks.


Reply to this email directly or view it on GitHub.

from ckuitools.

jasperblues avatar jasperblues commented on August 15, 2024

No worries Stanislaw :)

from ckuitools.

stanislaw avatar stanislaw commented on August 15, 2024

Yes, it is.

2013-10-04 12:57:30.891 SandboxApp[9369:a0b] set size exists = 1

I want to think about it and come up with a decent consistent solution: having x, y, origin, ... and ... viewSize breaks my heart ))

Again, thanks for clarification!

from ckuitools.

jasperblues avatar jasperblues commented on August 15, 2024

swizzling! ;)

from ckuitools.

stanislaw avatar stanislaw commented on August 15, 2024

This is the follow-up:

SEL selectors[8] = {
    @selector(setSize:),
    @selector(setOrigin:),
    @selector(setX:),
    @selector(setY:),
    @selector(setWidth:),
    @selector(setHeight:),
    @selector(setCenterX:),
    @selector(setCenterY:)
};

for (int i = 0; i < 8; i++) {
    NSLog(@"%@: %d", NSStringFromSelector(selectors[i]), [[UITextView new] respondsToSelector:selectors[i]]);
}

Looks like origin is also a bad guy! Thoughts?

from ckuitools.

genericspecific avatar genericspecific commented on August 15, 2024

Yup. I use position rather than origin.

On Oct 4, 2013, at 12:25, Stanislaw Pankevich [email protected] wrote:

This is the follow-up:

SEL selectors[8] = {
@selector(setSize:),
@selector(setOrigin:),
@selector(setX:),
@selector(setY:),
@selector(setWidth:),
@selector(setHeight:),
@selector(setCenterX:),
@selector(setCenterY:)
};

for (int i = 0; i < 8; i++) {
NSLog(@"%@: %d", NSStringFromSelector(selectors[i]), [[UITextView new] respondsToSelector:selectors[i]]);
}
Looks like origin is also a bad guy! Thoughts?


Reply to this email directly or view it on GitHub.

from ckuitools.

stanislaw avatar stanislaw commented on August 15, 2024

Ah, I see - position is here in CKUITools.

I think, I will choose more conservative option: @viewSize and @viewOrigin. Two of them is a band 👍 !

from ckuitools.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.