Questions tagged [mainscreen]
23 questions
0
votes
4 answers
How to display a UIView which overlaps the UINavigationBar
In my application, I want to initiate a UIView that overlaps and dims the whole screen including the UINavigationBar, the code is as below:
- (void)showInstruction
{
self.holedView = [[JMHoledView alloc] initWithFrame:[UIScreen…

Julie Yu
- 83
- 1
- 6
0
votes
2 answers
Setting app icon on home(main) screen default
i'm working on an sms management application, it works instead of native android sms manager but i want to show my app on home(main) -i mean 1st screen-programatically.My application now seems on 6th screen and diffullt to reach to write a…

Duygu Duman
- 1
- 1
0
votes
2 answers
iOS 8.x alternative to detect iPhone 5s, using [UIScreen mainScreen].bounds.size.height == 568.0
In iOS versions prior to iOS 8, to check whether the device is iPhone 5/iPhone 5s, checking [UIScreen mainScreen].bounds.size.height == 568.0 was enough. But in iOS 8.x onwards, this check may fail as the bounds are now orientation dependant. I need…
user4226071
0
votes
1 answer
UIScreen mainScreen bounds different between simulator and actual device on iOS8
in my iOS7 app I use:
screenRect = [[UIScreen mainScreen] bounds];
screenWidth = screenRect.size.width;
screenHeight = screenRect.size.height;
I then use screenHeight for loading different view regarding if device is iPhone 4 or iPhone 5.
The main…

Matej Zimic
- 73
- 1
- 6
0
votes
1 answer
RelativeLayout params for main screen widget
What's up guys!
Here is an example of my layout xml:

user2698308
- 145
- 2
- 12
0
votes
1 answer
BlackBerry using UIApplication with MainScreen
I am trying to add a Browser Field onto my Main Screen. Currently, I have:
public class BrowserFieldDemo extends UiApplication {
private MainScreen _browserScreen;
private BrowserField _bf2;
private BrowserFieldConfig _bfConfig;
public…

littleK
- 19,521
- 30
- 128
- 188
0
votes
1 answer
Creating logic to handle view/button sizes
I would like to create some logic to handle the view sizes for a subview and some buttons, based on the mainscreen size.
So I would like to do something like this:
//Discover the main screen size (which would be different depending on the…

StuartM
- 6,743
- 18
- 84
- 160
-1
votes
2 answers
How to call and pass other mainscreen?
In class a which extends MainScreen, I want to call b class which extends MainScreen also.
When I pass b.this into a function error shown No enclosing instance of the type b is accessible in

Alan Lai
- 1,296
- 2
- 12
- 16