Ask Question Forum:
Model Library:2025-02-08 Updated:A.I. model is online for auto reply question page
C
O
M
P
U
T
E
R
2
8
Show
#
ASK
RECENT
←
- Underline
- Bold
- Italic
- Indent
- Step
- Bullet
- Quote
- Cut
- Copy
- Paste
- Table
- Spelling
- Find & Replace
- Undo
- Redo
- Link
- Attach
- Clear
- Code
Below area will not be traslated by Google,you can input code or other languages
Hint:If find spelling error, You need to correct it,1 by 1 or ignore it (code area won't be checked).
X-position of the mouse cursor
Y-position of the mouse cursor
Y-position of the mouse cursor
Testcursor
caretPos
Attachment:===
Asked by rcearley
at 2024-07-28 15:46:15
Point:500 Replies:8 POST_ID:828626USER_ID:11488
Topic:
Web Browsers;iPhone;Apple Hardware
I'm using the mapkit on the iphone to display the map. When you turn the phone sideways, the mapkit doesn't resize to fit the screen. Does anyone have an example of how to do this? Thanks.
Expert: pgnatyuk replied at 2024-07-31 00:14:11
Anyway the map view is the view. So it works exactly as any other view. You rotate the phone, the root controller receives these notifications and react accordingly. The view controller that handles the map view should supports the prone orientations.
Do you need a help for that? If yes, the answer will be shorter if we talk about iOS 6 only. Firstly, the project should support all orientations you need - in the project settings.
Secondly, you need to add two methods to your full screen view controllers: shouldAutorotateToInterfaceOrientation: and supportedInterfaceOrientations.
Looks like it should be so in your project:
Do you need a help for that? If yes, the answer will be shorter if we talk about iOS 6 only. Firstly, the project should support all orientations you need - in the project settings.
Secondly, you need to add two methods to your full screen view controllers: shouldAutorotateToInterfaceOrientation: and supportedInterfaceOrientations.
Looks like it should be so in your project:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation{ return YES;}- (NSUInteger)supportedInterfaceOrientations{ return UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskLandscape;} 1:2:3:4:5:6:7:8:9:
Supporting Multiple Interface Orientations
If you have a tab view controller (or a navigation controller) as the root controller, the things are a bit more complicated - this controller should detect which controller is the top controller now and return the orientation parameters from this top controller.
In iOS 5 was one method shouldAutorotateToInterfaceOrientation that is deprecated now.
Expert: Michel Plungjan replied at 2024-07-30 23:27:29
I think you have hit a very specific issue that may not find it's intended expert in time.
I found several seemingly relevant links when I googled
mapkit rotate landscape
for example http://forums.adobe.com/message/4084379
Are you creating a MapView in its own ViewController? Can you try adding the MapView to the root View Controller.. something like following
[[[[[UIApplication sharedApplication] windows] objectAtIndex:0] rootViewController].view addSubview:mapView];
after this your MapView should obey the autoOrients property in App Descriptor.
I found several seemingly relevant links when I googled
mapkit rotate landscape
for example http://forums.adobe.com/message/4084379
Are you creating a MapView in its own ViewController? Can you try adding the MapView to the root View Controller.. something like following
[[[[[UIApplication sharedApplication] windows] objectAtIndex:0] rootViewController].view addSubview:mapView];
after this your MapView should obey the autoOrients property in App Descriptor.
Expert: _alias99 replied at 2024-07-30 18:46:17
rcearley,
A message has been sent to some additional experts asking them to review your question. We will check back again to see if you are getting the help you need.
This request included Experts from iOS, iPhone, Apple, Mobile / Handheld.
Please do not respond to this comment; we will be monitoring your question for activity from the Experts.
Thank you for using Experts Exchange,
_alias99
Community Support Moderator
http://www.experts-exchange.com/R_22317.html
A message has been sent to some additional experts asking them to review your question. We will check back again to see if you are getting the help you need.
This request included Experts from iOS, iPhone, Apple, Mobile / Handheld.
Please do not respond to this comment; we will be monitoring your question for activity from the Experts.
Thank you for using Experts Exchange,
_alias99
Community Support Moderator
http://www.experts-exchange.com/R_22317.html
Expert: duncanb7 replied at 2024-07-30 15:10:03
Try to take considerate to some viewer around the world who might not understand what you mean about "turn the iphone sideaway" , and "rotate" will be easier to be understood
I think
I search it in google, there is a little about your topic , closer to your topcic as follows
http://stackoverflow.com/questions/10865945/rotating-mkmapview
http://stackoverflow.com/questions/7468557/rotate-mkmapview-in-iphone-application
What I can do that is all at my level. I am sorry I am not much to help on the topic
since it is not easier for me when I search it in deep.
Talk you later
Duncan
I think
I search it in google, there is a little about your topic , closer to your topcic as follows
http://stackoverflow.com/questions/10865945/rotating-mkmapview
http://stackoverflow.com/questions/7468557/rotate-mkmapview-in-iphone-application
What I can do that is all at my level. I am sorry I am not much to help on the topic
since it is not easier for me when I search it in deep.
Talk you later
Duncan
Author: rcearley replied at 2024-07-29 20:20:09
Maybe I am not communicating on the same level. When I say "turn the phone", I mean rotate the phone. It is the same thing. It has to do with holding the phone in your hand and instead of holding it in portrait mode, you lay it flat on it's side. When you hold the phone in your hand in portrait mode it works fine. If you turn the phone/rotate the phone, the map doesn't resize the left and right sides, so there is white space on both sides of the map. There should be a way to resize the map so that it fills the full screen.
Expert: duncanb7 replied at 2024-07-29 16:43:01
Sorry , but you doesn't mention anything about rotate or rotation in your thread
Author: rcearley replied at 2024-07-29 16:37:51
Those posts are not related to resizing the map or handling the rotate event. I'm trying to figure out how to change the map so that it fits the screen when the user rotates the phone. I found an event called: shouldAutorotateToInterfaceOrientation, but I'm not sure if that's the correct event or how to resize the map to fit the screen.
Expert: duncanb7 replied at 2024-07-29 01:23:24