I'm new to XCode and Objective-C, and is trying to recreate the bottom bar of the iMessage app, but i can't figure out how to do it. I've seen other app's using the exact same layout, WhatsApp Messenger for example, which made me think there probably is some easy way to do it.
It seems impossible to get a UIButton to look like the send-button, and it seem equally impossible to make a UITextField look like the input-field. Is it really all done by using images, or are there some native (correct) way to do it? If it is all images, where can I find them, or do I have to make my own?
Also, how do i make the textfield vertically expand while the user enters text? This question at least seems to answer how to make dynamic-width buttons using images, but not how to make textfields with variable height.
This is what I'm trying to recreate:
There is no easy way to do it. The tricky part is to mimic the behavior and the precise position of the elements. I did this with high precision for an app I developed and extracted the compose bar into a standalone project so anyone can easily get it. It's called PHFComposeBarView. Here's what it looks like:
Just to summarize, those are the features:
Quick google search for the bar. You have to make your own button images and havve it change when you tap it. The its a textview not a textfield and you have to make it change size dynamically. There's an imageview behind it that changes size as well. My suggestion is to use google more. I found a lot of this stuff by a 2 second google search. As for the bar he is the link http://developer.apple.com/library/ios/#samplecode/KeyboardAccessory/Introduction/Intro.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With