I am making a project like Facebook menu from Github (Link). as it doesnot support for iPhone5 Screen so i recreated the project but there is some problem with the the iPhone 3.5 inch screen . The same is working fine on iPhone 5 screen i.e 4 inch screen. Please see the attached screenshots. Does anybody has idea whats going wrong ?.
While you can see the above screenshot,the 1st and 2nd screenshot are of iPhone 3.5 inch screen,the problem with both screen is that i am getting the green color table view in bottom.
while the 3rd and 4th are of iPhone 4 inch screen are have no issues.
Any help will be appreciated
Thanks in Advance :-)
Try turning Auto Layout off (if you're using Interface Builder).
Related
We have an iPod app built with base SDK as 5.1.
App has a tabBarController with three tabs and each tab has a UIViewController to load a different view.
The app works fine for iOS 6.1 and iOS 7 (3.5 inch display) simulator and device but when we run the app on
iOS 7 (4 inch display simulator) or device we are getting black bars at the top and bottom of the view screen in all three tabs.
If anyone can suggest reason for this or some feasible solution to this problem, it would be really helpful for us.
Thanks
First thing is that you must add the required default image for 4 inch screen display. Check Properly in you project have image with name Default-568h#2x.png (640 × 1136 pixels)
This Default-568h#2x.png is Necessary for Support app in 4 inch Screen display
Ones you add this image in to you working Project, Remove old Build from device or Simulatore, clear Project and re build and check Hope you issue will solve.
Edit:-
After fix the black Bar issue you can check the device like my answer Give here check this:-
Detect device type
you have two choice if you can't use AutoLayout
First
Create two xib with same class one for 3.5 inch screen and one for 4 inch screen set using macro with checking which screen appear.
Second
Set Self.view frame using macro with checking which screen appear.
There are also other methods you can use for set self.view frame as using window frame or UIScreen
My problem was I accidentally deleted the value found here:
I added back LaunchScreen, and made sure there was a LaunchScreen.xib. Maybe it will help some others.
Ive had the same problem - black bars at the top and bottom. It was simply solved by setting the drop down in "App Icons and Launch Images" to Main_iPhone:
App Icons and Launch Images Screen Shot
I was facing same problem . I just added launch image and it worked for me.
XCode->Click on Project File -> Select Target-> App Icons and Launch Images -> Add launch image source
This worked!
Pay attention to Step#5 and Step#6 below:
1.In xcode, Click on the Project file in Project Navigator
2.Click General tab
3.Type "Main_iPhone" in the Launch Screen File field
4.Save
5.Remove the app from device or simulator
6.Then in Xcode go to Product Menu and then select Clean
7.Build again
I'm having an issue with lazyload on the iphone 5 and 4s. For some reason, when I scroll down the page, it loads two images in the viewport, when there are 9 in the viewport, then i scroll down, only another 2 images are loaded, and again, etc. When I click the home button and go back to safari on the iphone 5, it then loads all the images in the viewport. I don't have an iphone 5 but i tested it at the apple store, I have an ipad 3 and it works fine on that. If anybody has any experience with this, any help would be greatly appreciated. I'm hoping Mika can chime in on this as well as he's active here too. Thanks!
after fixing some bugs, it appears to be working. had some problems with the viewport other minor css bugs, and now it works perfect.
I have finally done to build Augmented Reality app.
The app works great for iphone 4 screen size Width :480 Height :320.
During the development I have also test the simulator to see launch goes well for 4 inch display (iphone 5), and it did go well the splash screen show was the 4 inch png named : Default-568h#2x.png and the screen shows a white background fully (like it should).
When I launch the app on a real iphone 5 device, the 3.5 inch splash screen loaded and the app load like it loads on iphone 4. Everything in the middle and I get a little black equal Margins from the side, the cable is original and this is the Weirdest thing ever happened to me.
UPDATE : i have also tried to add this code on the simulator and to the real device :
CGRect bounds = [[UIScreen mainScreen]bounds];
NSLog(#"%#",NSStringFromCGRect(bounds));
the simulator prints iphone 5 screen size, the real device prints iphone 4 size.
Any help please
Make sure you have all three Launch images set up correctly. :)
Make sure the image has been added to the target.
=> If you select your image file in the Project Navigator (left pane) the Utilities pane (right pane) should have a checkmark under 'Target Membership' next to your target.
I think that your views need to resize. You may need to include some code that detects what device the person is using and resizes the view. Just a suggestion.
My first app got accepted and uploaded onto the app store today :)
I download it onto my 4s (iphone with a 3.5 inch screen size) it is PERFECT!!
But when i download the app onto my iphone 5 (iphone with 4 inch screen size) the pictures are all out of place and moved around on the screen (as if the images are being stretched. How can i fix this? I dont have time right now to redo all of the art work. I just want the black bars to be on the top and bottom. How can i achieve this? Thanks a bunch guys!
Remove the Retina (4-inch) launch image from the project navigator (although it would be better to provide an 4-inch version of your app :p ).
I'm creating an app using xcode 4.5 that is meant to support only the 3.5 inch retina display. Thus, in the attributes inspector for the view controller I have set the size to be 3.5 inches. However, I'm testing my app on a iphone 5 and the app auto-resizes to fit the whole screen. Do you know why this is happening? How can i make the app remain in 3.5 inches of size even when viewed off of a iphone 5?
Thanks
If you remove the default 568h#2x icon from your project the app will run the way you want. On the iPhone 5, you will get black bars on top and bottom to show what it would look like on the 4. Hope this helps.
The answer is - you can't do that :) But you can download ios5 simulator and set it's device property to 3.5 screen device