Weird iOS5 glitch when keyboard appears after selecting textfield - iphone

When selecting a textfield in iOS5 a weird arrow moves from the top left to bottom right of the screen when the keyboard appears. This only happens in iOS5 on the device and the simulator. When running with iOS4 it works as expected.
It only happens the first time the app runs, when i dismiss the keyboard and select the textfield again the arrow isnt visible. I have to restart the app to see it again.
Notes:
Ive posted a video to display what i'm getting http://youtu.be/4Ju2-wQ3hVY
I've tried stripping out other classes and creating a new blank nib with a textbox only but the problem still persists within my project. Creating a new project with xcode 4.3, the problem isnt visible. I've also tried with zombies enabled and didnt get any errors.
Are there new project / build settings that might conflict with the older versions?

This arrow looks like bug to me. I suggest you to file a bug report to Apple and post your issue to http://devforums.apple.com, where maybe issue will be notice by Apple employees and you may get more details on this.

Related

Ionic 4 input keyboard scrolls up contents

hope you will be fine. I need some help. I am using ion-textarea in my ionic project and below that I have some buttons. When I build the app and test on android it looks perfect. When I tap on ion-textarea and simply close keyboad without typing anything it works fine but when I tap on ion-textarea and start typing something and then close the keyboard, the content below the ion-textarea scrollls up and does not go down.Here is the screenshot of the error:
Looking forward to see your response, thanks!
This issue still seems to persist : https://github.com/ionic-team/cordova-plugin-ionic-keyboard/issues/155
Since this issue seems to be caused by the keyboard on iOS, the easier fix would be to use a different keyboard plugin as well as upgrade to the latest version of cordova-ios.

Get rid of file icon shadow when file is not saved in Xcode

When a file was just edited and not saved in the Xcode editor the icon of the file in the right pane is darkened a little, and because I have OCD this drives me absolutely crazy and I end up having to click Ctrl+S every time I do anything as simple as commenting a line of code or moving a button 1 pixel in storyboard.
I am using Xcode 10.1 Beta 2, but this happens in all versions of Xcode.
How do you make it so the file is never darkened?
I have the same problem in Xcode and I always command s everything as well. I have looked for a way to disable this, but for now I don’t think there is a way... Maybe they’ll add a way to turn this off in another update soon :)

iOS 11 UIWebView JavaScript Pop-up Issues

I have an issue with updating an app for use with iOS 11. I have the native app, which uses a UIWebView to show a GWT JS application.
However, pop-ups are not working in this app for iOS 11. They can open, a value can be selected, and then they will save the value and close, but then they will reopen exactly as they were prior to closing, and this will continue. If I have 2 drop downs, then the first will have the issue described above, but if I then open a second I will see the values from the first drop-down until I have clicked somewhere else on the screen to close it.
The second time the drop-down comes up it does not automatically close on selection, but does seem to change the value. Additionally, if I close the drop-down without having anything selected then it will pop-up with the same number of items in the list, but all blank, as though the initial pop-up is somehow feeding values into the second pop-up.
I have eliminated the possibility that it is solely a code issue, as the same exact native and web code has the pop-ups working as intended on iOS 11.
I would appreciate any advice on how to deal with this, either because you have experienced this issue yourselves or even just in general issue debugging hints for iOS 11, as this is relatively new to me.
Thanks.
What worked for me was replacing UIWebView with WKWebView from WebKit framework. For the moment I didn't found any better solution to this issue.
Be sure you add WebKit.framework to your target.
This is an ios issue with UIWebView, as mentioned in the previous answer. Replacing this with WKWebView will help to fix this. For anyone who is not able to replace to WKWebView, this issue is fixed in xcode 9.2 beta-2 version. So you can build your app with xcode 9.2 beta-2 (hopefully the stable version will have this fix as well), and try testing in ios 11.2.

Why in Xcode 6 doesn't work Assistant Preview?

Sometimes in Xcode 6 Assistant Editor -> Preview stops working.
Showing just "No selection" even if no errors and Storyboard is ok.
Why does this happen?
The reason is "?" (questionmark) in Project's name (maybe there is a bug with other symbols – didn't check it).
You can try to rename Project or just create new one with name without "?" in it.
You must to Kill Xcode from processes for complete and then open it again. You can do it with Activity Monitor o CLI. Voila! - Preview is working again.
Don't just close Xcode keeping the app working. Sometimes also works closing with CMD + Q.
I had similar problem, but fixed it
You must open the xib or storyboard file in both assistant editors. Click the navigation button in the second editor (either the bottom or the right editor, depending on how you stack the assistant editors) and choose Preview to get the preview to appear.
thanks to
http://meandmark.com/blog/2014/09/xcode-6-no-simulate-document-in-interface-builder/comment-page-1/#comment-2883
I have played with Xcode 6 for a while and I encountered similar problems occasionally. I never used special characters in project or class names but the problem sometimes happens.
Now I have to test all ViewControllers at starting point to see if the Assistant Editor work. If not, I will just delete the class file and recreate the same one, it usually fix the problem.
Hope this can be fixed soon.

nslog stopped working in xcode

I have a strange issue and possibly a bug. My NSLog statements have stopped working completely, they do not print even in view did load, application didfinishlaunching etc. The have all turned a brown colour (the same colour as a pragma mark in xcode) and they all have a warning saying 'expression result unused'. Has anyone ever seen this before or know what to do? Am i running in some kind of weird mode? Im running xcode 4.0.2.
Many thanks
Jules
for completeness, I had the same problem and the answer was different, hope it helps someone else who bumps into this post:
I had a framework (an Amazon one) redefining NSLog, went there (Cmd+Click on the Brown NSLog) and commented out the redefinition...
The actual problem was the release_build set to 1. So it wasn't recognizing nslog, as you said it was set for a release build.
I had the same issue :
what worked for me is given below:
Remove the derived data folder
After removing derived data perform the clean action (You can see this option in the product menu)
Quit the Xcode and start it again.
And this did the trick all my NSLog were working fine.
Hoep this helps
Ensure that scheme chosen corresponds to Debug mode because sometimes the pch file might have some definitions such that logging is done only in the debug mode
(Scheme is on to the left of the place where you select iPhone Simulator / iOS Device)
In the view select Debug Area
(There are 3 view buttons, on the top right hand corner of Xcode, press the center button)
Select "Show variables view and the console"
(In the debug area (bottom) there are ther 3 buttons, press the center button)
I had the same issue and the problem was that I was building an Ad Hoc version (schema was for Ad Hoc build). The warnings disappeared when I built for debug.
Try changing the dropdown menu at the bottom of the console to 'All Output'.
if you are using libraries like 'KScan' or 'iKEA' or 'kdc-scan', so it can happens that, they will call methods like this one 'redirectNSLogToDocuments'.
in my case the object of 'iKEA' call the method 'CheckIfDeviceConnected' and this one redirect all nslog outputs to documents. after commenting out, all nslogs works again :)
hope this will be useful for some one.
some steps :-
1) "Clean all targets" or delete your build and rebuild again.
2) If step 1 doesnt work , reinstall xcode