I have an app that I originally developed for iOS 3 back in March 2009. I've been constantly updating it for the past two and a half years. I've maintained a deployment target of 3.1.3 ever since early on.
I recently decided to upgrade to OSX Lion and XCode 4.2. I opened my app in the 4.3 iOS Simulator and tried out the latest feature I had added. I have a background button that does a resignFirstResponder on all UITextFields in the view. I put the cursor in the UITextField that was recently added to this view that's been around since the beginning. When I hit the background button, the app crashed. I tried again but used a textfield that's been around since the beginning, that background button didn't crash the app. I tested on all UITextFields that have been added in the past few months and it crashes on all of them, it doesn't crash on any old UITextFields. I went to other places in the app too, like a search bar that was added just a few days ago, whenever I focus the textfield and hit a key, app crash. On an older search bar in another view, no crash.
Think of it like this, any IB Class that was added in the past few months doesn't work. BUT if I delete the broken UITextField, copy/paste an old/original UITextField and rewire that to the IBOutlets, it works!
To top it all off, everything works fine in the iOS 5 simulator.
UPDATE - Problem Solved
While typing all this, I went into XCode Properties and saw there was an update to the 4.3 Simulator in the Downloads tab. Installed that and everything is working now. Frustrating.
I solved the issue by updating the iOS Simulator from Xcode Preferences, the downloads tab.
Related
I am having an issue with my app's sliding menu (segment) buttons. Two of the three buttons text are filled blocks, and I did not make any recent style changes to the app, let alone the app.scss file.
I am only seeing this on iOS devices (using an iPad mini and iPhone XS), not on ionic serve and Xcode simulators.
Is there a way to figure out the cause of this styling issue, or at least replicate the bug on either the Xcode simulators or ionic serve. I tried development and production builds, no difference.
My only guess is maybe something dealing with the new changes made with iOS Mojave as it made changes to the iOS app structure.
I am using a work-around by changing the font color to something close to the original.
Ex.
#777 to #777776
There has to be a reason it is doing this with just #777 or #fff.
I'm new in Apple Watch and I'm trying to create the first App with XCode6.3. In my Watch storyboard I put a button but when I run the App in the simulator I can't tap the button and seems disabled... what's happen?
Having similar issue... Sometimes only a portion of the WKInterfaceButton is clickable. Forced to revert back to Xcode6.2 beta5...
I returned to the previous beta of Xcode and now is all OK. The simulator works fine. Probably for some strange reason in my mac the simulator of Xcode 6.3 doesn't work correctly.
Thank to all
I was working with Xcode 4.6 with iOS 6 SDK for building our iOS app. Recently we migrated to Xcode 5 which comes with iOS 7 built-in. After migrating to iOS 7 SDK, lot of weird things are happening e.g. status bar issue, keyboard animation mess up and UIImagePickerController status bar issue.
I am not finding any solution for the weird keyboard animation issue. When I tap the username text field in my login screen, entire view is going up till the text field and its not scrollable also. Its totally screwed up. Please note that mine is a hybrid application built using cordova library. So, all the UI elements are designed in HTML5. Below are two screenshots for the key board issue.
Please suggest me how to fix this… Thanks in advance….
That seems to be a problem in web view's on iOS7. We have the same problem.
It seems fixed in iOS 7.1.
i have an app that perfectly work in iOS 6, and when i update my iPhone to iOS 7 that was still work fine.
Then i update my XCode, and made some minor changes in my app (i did hide 2 UINavigation back bar buttons). After that i update my app (i want to point that i didn't change interface of my app), and when i update it from appStore and launch it on my iPhone there was a completely disaster. Interface objects such as segmented control or UIDatePicker automatically changes for iOS 7 version (style, color), back bar button item change it style, etc.
My question is, how can i force my app to launch on iOS7 with previous (iOS 6) design?
Replacing all the native views (switches, date pickers, alerts, action sheets, table views etc) by your own views that replicate iOS 6 appearance.
There are some open-source solutions, too.
However, it will be very hard, don't expect to do it in a few days.
Recommendation? Don't do it. Modify the apperance of your application for iOS 7. The users will expect it. You can't leave your application forever with deprecated appearance. I understand your feelings (my apps look terrible, too) but staying with iOS 6 appearance is not the solution.
You can build your app with iOS 6 SDK. But it can be only a temporary solution because Apple will not accept such apps in few month, I think.
Here you can see how to add SDK to Xcode:
Is it possible to install iOS 6 SDK on Xcode 5?
I have an app built in XCode 4 against iOS6. If I open that workspace in XCode 5, clean and build my project, and run it in the simulator, it works (looks a bit different and needs some work, but it works). If I the simply navigate to my Storyboard and do absolutely nothing else, running the app in the simulator again results in my Photo Slideshow showing up black rather than showing pictures properly. A diff reveals it made some changes to the story board file when I looked at it. Rolling back the changes pertaining to my slideshow only is not effective. Rolling back all the changes works until I look at the Storyboard again.
It's obviously capable of working properly - why does it have to ruin everything just because I look at the Storyboard? Now I have to rebuild this part of the app, which is painful because I didn't build this part of the app to start with. This is not great for maintainability.
OK I have been messing with this all day.
In a nut shell keep or install Xcode 4.6 to deploy iOS 6.1 and before apps.
So for Xcode 5 messing stuff up, yes it's not working as expected.
I would expect to set the target
And have it look like an ios 6.1 app but it does not it looks ok in the viewer but both on the simulator and a iPad it looks bad. I have already filed a bug report.
ALSO if you have Autolayout checked in your 4.6 project and then try to look at it in Xcode 5.0 be prepared to kill Xcode as it tries to move everything around. In my case many table views got stuck in an endless loop and finally got a warning that tables can not exceed 10,000 :)