Comments (11)
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.
Mmm,just a preference)
from ui7kit.
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.
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.
ah,seem like u have already fixed that lol, thanks
from ui7kit.
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.
mmm try to use - (void)willPresentAlertView:(UIAlertView *)alertView
from ui7kit.
A word on UIScreen vs UIWindow.
It is possible to to open many UIWindow
s 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.
@LeoNatan Thank you for the advice. I thought UIAlertView should be shown in the middle of the window. Is this right?
from ui7kit.
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.
Thank you very much! Great hint for implementation.
from ui7kit.
Related Issues (20)
- UISearchBar appearance issues
- If alertView has no button, not draw background. HOT 1
- No separator between cells when using grouped styled table view HOT 1
- Back button arrow disappears if I try to remove the text on the back button
- Seem a leak In UI7NavigationBar HOT 3
- No UI7DatePicker? HOT 1
- UIViewController layout guides crash
- UI7Kit does not colorize correctly on UITableView grouped style HOT 4
- Pods-environment.h doesn't exist when targets are used in Podfile
- The frame is not correct when i edit the ABPersonViewController...
- UI7PickerView doesn't show text
- Problem to compile together with the Parse sdk ? HOT 2
- UITableView height of header section doesn't work well
- UI7SegmentedControl
- please update Podspec and Release Tag! HOT 1
- Pods/Headers/Build/UI7Kit/UI7Kit/UI7Kit.h:16:10: '../Pods-environment.h' file not found HOT 7
- UI7Kit.h doesn't exist issue HOT 2
- 'Pods-environment.h' file not found HOT 2
- Important notice about bug reports and patches HOT 1
- Crashes on iOS 10 for me
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ui7kit.