iPhone Development - Keyboard does not automatically adjust when taking input using TextField placed in a TableView - iphone

I just downloaded 2.2.1 and i've seen that my input view does not adjust itself when an input field (NSTextField) is selected. Earlier the view was adjusting itself w.r.t keyboard.
I was using 2.1. How can i achieve the same effect?

This was a bug, which has been fixed by Apple.

Related

xcode 8 live preview not previewing properly

I have updated xcode to the last version (V8.0). In the previous stable version, the live preview sections shows the app exactly how it would be in the device. However, in the new version, the live preview sections shows the app exactly how it appears into interface builder.
how can I have the live preview as it was before?
Any idea will be appreciated.
Thanks in advance.
The Interface Builder of Xcode 8 has been thoroughly reengineered. It is not possible to set it back to the Interface Builder of Xcode 7.
You have two options.
Either you download Xcode 7.3.1 from the Apple developer center. But you'll lose the ability to use Swift 3. This option is absolutely not recommended since you'll also lose future updates and future new features.
Or you make yourself familiar with the new Interface Builder. That option is recommended. The Apple promotion tells you exactly why:
See a live preview of exactly how your app will appear on any Apple
device with full vibrancy. As you quickly switch between different
devices to customize your UI for size classes, you will always see the
same interface as your customers. Pan and zoom are incredibly fast,
and you can even edit your interfaces when fully zoomed out for a
bird's eye view of your storyboard.
A Beginner’s Guide to Auto Layout with Xcode 8
Also I can advise you to look at this thread. I had issues with the new Interface Builder as well. The key answer: Split big Storyboard into many small ones. And update the Constraints from Xcode 7 projects as suggested in the answer:
1) Remove only one of the "Height equals: xx" constraint from one of your views inside the cell.
2) Update all frames.
3) Select the view you removed constraint from.
4) Click to add new constraint button. Now it should be showing a new height, probably with a decimal value.
5) Add height constraint without changing the value inside the box.
But splitting my Storyboard into many smaller ones did the trick. Take a Storyboard for every scene of your App. Like Login. Tweets. Pictures. Settings.
In Xcode 8, preview is by default attached at bottom side of view editor,
Here is the screenshot of the bottom view, which gives you the preview,
Select Any of the size shown to preview it in respective size.

iPhone - Text field covers entire screen

A beginners question: I've added a Text Field to my application. In IB it looks fine, having its size set to 100 x 30. However when running the app on simulator, the Text Field covers the entire screen. How do I fix that?
I think you have to check your file owner's connection with that textfield may be by mistek you have done connection from file owner's to textfied as view so remove thatone.
Checkout Utility view on the right side
Go to first tab
Uncheck Use Autolayout
Go to forth tab
Check Autoresize subviews
Following these steps may solve your problem
Enjoy Programming!!
Check Property for Text field for 'AutoSizing'
Hope, it'll help you.
Thanks.

UIButton not showing the text in iOS6

I am working with iOS6 and Xcode 4.5, I am getting an UI issue with some UIButton, some of the buttons title are not getting shown in my view.
In an older version of iOS everything works as expected.
Please see the following image. It's not showing the text "Button" while executing it on simulator
I had a similar case which I just resolved. I think I know what triggers the issue with auto-layout.
I assume that you have created one button, then copied across the row and then copied the rows down. When you do that, one of the auto-layout constraints that's set is "Baseline alignment" between the buttons.
The problem is if this constraints (it does not have to be user-level) remains between buttons which are not on the same horizontal position, meaning between buttons in different rows. So select the problematic button and check to see if you have this constraint. This was my case:
If you do, select it, upgrade to user-defined and delete it. All magically works afterwards.
1Finally i solved my issue , actually iOS6 makes a default auto layout for view controller , through that it will align each component in the view .while i dont need the auto layout .
so i just uncheck the auto layout in property which solved my issue .
clean your project and build again, if not work then restart the xcode and remove the old app from the simulator.
one thing more, if nothing work for you then remove the button and add new buttons.
Try changing the "line break" property of the button to anything other than truncate middle. It looks like it's being truncated to just an ellipsis.

Customizing Iphone Keyboard

Is there a way to customize the iphone keyboard? Say I want the number pad with a comma button and a period button added to it.
What you are looking for is a custom IME (Input Method) which is not directly supported in iOS (true custom IMEs have been developed, but require jailbreak). You can create a custom view, but just for your application.
Yes, as of iOS 3.2. See this answer. You may not be able to edit the default keyboard, but it's not difficult to reproduce with your own view.

UiTextView doesn't display text on iphone os 2.0

My text view shows the text when i am using iphone OS 3.0-
but for some reason it will not show the text on OS 2.0.
I can get the inputed text on OS 2.0 and even save it to file,
and then restore the text but still- the text is not visible on OS 2.0.
I have tried changing the scrolling properties and the font and the color and the hidden property -
Anybody have an idea what it is?
Thanks-
Nir.
Answering my own question:
I added my text view to a button view-
so i changed it and now I am adding it to a uiView.
I guess there is a different way for displaying a text field on top of a button in the old OS 2.0.