Giter Club home page Giter Club logo

Comments (11)

youknowone avatar youknowone commented on July 18, 2024

I have a question. I found you prefer UIScreen to UIWindow to measure screen size. Any reason or benefit of it? I am not good at these issue. I want to know if it is reasonable or preference. Thanks for recent patches!

from ui7kit.

iT0ny avatar iT0ny commented on July 18, 2024

Mmm,just a preference)

from ui7kit.

youknowone avatar youknowone commented on July 18, 2024

I retouched some lines.

I think we cannot assign frame in -show methods. It breaks showing animation. If we want to arrange items to center, we should move up and down all the subviews including backgroundView.

So I removed the self.frame part. I think we can calculates total height and set each subviews frame one by one.

from ui7kit.

iT0ny avatar iT0ny commented on July 18, 2024

hm. "we can calculates total height and set each subviews frame one by one" actually it's bad idea for future enhancements. In non-default UIAlertView styles all subviews got CGRectZero as frame property(

from ui7kit.

iT0ny avatar iT0ny commented on July 18, 2024

ah,seem like u have already fixed that lol, thanks

from ui7kit.

youknowone avatar youknowone commented on July 18, 2024

I didn't fix it. Instead of fixing, I gave up to align it to center.

Any good idea to changing them before starting animation?

from ui7kit.

iT0ny avatar iT0ny commented on July 18, 2024

mmm try to use - (void)willPresentAlertView:(UIAlertView *)alertView

from ui7kit.

LeoNatan avatar LeoNatan commented on July 18, 2024

A word on UIScreen vs UIWindow.

It is possible to to open many UIWindows at different sizes. You should always find size of the screen from UIScreen at which the view is being drawn on (for example, it is possible to present on a secondary screen).

from ui7kit.

youknowone avatar youknowone commented on July 18, 2024

@LeoNatan Thank you for the advice. I thought UIAlertView should be shown in the middle of the window. Is this right?

from ui7kit.

LeoNatan avatar LeoNatan commented on July 18, 2024

UIAlertView (the system implementation) opens a private subclass of UIWindow and displays it in the middle of the screen. If I recall correctly, this is the same behavior in both iPhone and iPad.

On the other hand, UIActionSheet on iPhone opens a private subclass of UIWindow while on iPad it is a private popover controller that is pushed into the view hierarchy.

from ui7kit.

youknowone avatar youknowone commented on July 18, 2024

Thank you very much! Great hint for implementation.

from ui7kit.

Related Issues (20)

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.