I'm using flash CC to create an app for iPhone5.
In flash CC I start a new air for iOS file. I get a stage of 640x960. The stage is empty and there's no code. I publish, check it out on the iPhone and I get margins on the top and bottom. 1 cm each. It simply won't cover the whole screen.
I tick the full screen box in the settings -> still get the margins.
I add: stage.displayState = StageDisplayState.FULL_SCREEN; -> still get the margings.
I change the stage's size to various sizes -> all the same.
What am I missing? how do I make these margins disappear?
(I just want to see my empty stage covering the whole iPhone5's screen)
after many searches I found the answer to my problem here:
http://blogs.adobe.com/airodynamics/2012/11/07/deploying-air-apps-on-iphone-5/
Related
iOS 11 has an accessibility feature that shows a large version of a tabbar icon in a pop-up HUD when long pressed. In a WWDC presentation, it was mentioned this just involves turning on:
Settings -> General -> Accessibility -> Larger Text
..and adding:
tabBarItem.largeContentSizeImage = UIImage(named: "myHud")
Alternatively, you can add a vector image as the main tool-bar image, with 'Preserve Vector Data' checked in the asset catalog.
I've tried all combinations of this, and a long press does not show the HUD. I also tested with the Files app on my iPad running iOS 11b4 with no luck. This is the app that was demoed at WWDC.
Is there some other accessibility setting I'm missing to enable this feature? Or is it not available in beta 4?
It isn't enough to turn on Larger Text. You also have to use Larger Text — i.e. slide the slider way to right.
Then it works — well, the HUD appears. But the icon is not being enlarged within the HUD, so I don't quite see the point:
(As you can see, I'm doing this in a test project where I'm experimenting with the vector PDF image feature.)
This feature implementation and an example with tab bar are perfectly explained with illustrations on this accessibility site but here are the outlines :
Under Xcode, import the image to be enlarged with a pdf extension and a x1 resolution in the xcassets catalog.
In the new Image Set, tick Preserve Vector Data and specify Single Scale as Scales attribute.
If a storyboard is used for this image, tick Adjusts Image Size in the Image View section, otherwise put the adjustsImageSizeForAccessibilityContentSizeCategory image property to true in code.
For your tab bar or tool bar used in the application, first repeat the previous 3 steps for each image included in the items to be enlarged in the middle of the screen and then link the accessibility image to its appropriate item.
This feature is available only for the accessibility text sizes.
WARNING : don't forget to check your layout with these new images larger sizes.
For your record, an explanation of the Large Content Viewer is provided in this detailed WWDC video summary if need be ⟹ the UILargeContentViewerItem protocol is an iOS 13 new feature that shows the same HUD that's shown for standard bar items.
You need to go :
Settings > General > Accessibility > Larger Text(set on) > Move slider more then half to the right
Don't forget to set
tabBarItem.largeContentSizeImage = someKindOfImage
And Long press will does the trick.
I have latest version of Xcode 8 official release, and Im seeing blue rectangles borders filled white, instead of normal objects(Labels, Images, etc) on the main storyboard, I Drag an Image, button or anything and it just shows a blue rectangle (I don't see the object inside the rectangle, just an empty blue bordered rectangle), I attach an image for you guys to see, Any clue on how to solve it? Someone else with the same issue? This is happening an all My projects, and just start happening suddenly.. since the first day I was having no issue with this Xcode version.
Solution: Try these three steps.
Editor -> Canvas -> Turn OFF bounds rectangle.
Editor -> Canvas -> Turn ON bounds rectangle.
Editor -> Canvas -> Turn OFF bounds rectangle.
You may have accidentally switched on Layout Rectangles within Editor -> Canvas in Xcode menu.
The contents of my storyboard views were actually not showing AND had blue rectangles, while 'Show Layout Rectangles' was NOT on. I was also surprised to see 'Show Bounds Rectangles' since I never turned them on (awesome Xcode ghost move here)
Note: Even though I did try turning 'Show Bounds Rectangles' off, the blue rectangles remained.
Solution: Restarting the computer. Opened to my storyboard and at least for me, I had to turn off 'Show Bounds Rectangles' because it still remained. I can see my content again, yay!
(seeing on Xcode 8.0)
I tried lots of solution. But there is no permanent fix for this.
Try below line
Editor->Canvas->Bounds Rectangles. (Do this three times.)
Doing this every time is quite annoying. So a solution is u can set some shortcut key (Keybinding).
Go in Xcode-> Settings/Preferences -> Keybinding -> search Bounds Rectangles and set shortcut for that
It will be easy if we use shortcut and save some time.
When my app launches, I see a white screen, instead of my launch image. I am using a storyboard, as required, and everything was working fine for about 2 months before this. I didn't change anything related to the image or storyboard either, it just started happening. I should mention that this started happening sometime after my first time uploading to TestFlight...but I doubt that is relevant. I have tried changing the constraints of the image to make it smaller than the bounds, and it still doesn't show up, so it isn't the size of the image. Again, I seemingly did nothing to have this start happening. Most of the questions related to my problem on stackoverflow have to do with the user not using a storyboard as required with iOS 9. Please help. Thanks.
UPDATE
I launched it on the simulator (iPad2) and the launch image for that was too small...there was white exposed above and to the right, I'm guessing I need to fix something in the storyboard but I'm not sure what.
UPDATE
I made a new storyboard and assigned the launch-screen config to it, and there is still a white screen.
I deleted the UIImageView and then inserted a new one with dimensions 200 x 200.
I added the image to the UIImageView.
I adjusted the constraints to the same values that I was using before.
Adding the image to the 200 x 200 UIImageView, before adding the constraints, seemed to be the key.
Make sure that one of the view controllers has the Is Initial View Controller checkbox checked in the Attributes Inspector in the right sidebar, that got me.
In project by default you LauchScreen.xib. Put your launch image there and set it’s top, bottom, leading, trailing constraints. Tap your project file and scroll down. There you will see: LauchScreen option and MainStoryboard. Set LauchScreen to your LauchScreen.xib. That’s it))
I use a set of launch images for my app and noticed that when I'm having a call, recording a voice note or sharing my Internet connection and put that activity in the background and launch my app, the launch screen is wrinkled in the center. Is there anything I can do to make the image look ok or is it just a standard iOS behavior?
Just define a key in plist file will solve your problem
Status bar is initially hidden = YES
OK, the solution I found is to hide status when launching the app, just like here
Seems like Apple "take" 4% of screen space from the middle of the screen (as far as I tested) to give it to status bar. Personally I faced this problem when using iPhone modem mode.
So if it is not critical for image to be centered vertically - the solution would be to place image above/below this "4% middle screen area".
Examples when image is cropped:
How image should look(image centered vertically & horizontally, width & height are fixed size)
How it actually looks
Example when image looks as supposed to (but not centered) :
Constraints example
Image with new constraints example
I have been trying to center a PickerIOS, but I am probably missing the underlying logic behind a Picker, because I just want its width to be full screen.
I can manage to do that with iPhone 4s / 5s, but when I run it on the iPhone 6, the Picker seems to be on the left, with some space on the right side.
I have been trying to use alignItem:'center' with a wrapper around the picker, but that just makes it disappear. I have also tried alignSelf, but still doesn't work.
I thought that Picker, by default, had its width to full screen or does it adapt according to the length of the elements?
Do I have to place it in a Flexbox in order to get it centered with a full screen width?
mask1: {
height:120,
overflow:'hidden',
justifyContent:'space-around',
marginTop:50
}
I find out that the style of PickerIOSItem cannot change, and only works fine in NavigatorIOS. I review the example of UIExplorer and there is no more style binding to the Item. Maybe it's a bug.