How to show more text on annotation view - iphone

I have created an iPhone app which loads the map using the MKMapkit. When clicking on the map, it shows MKAnnotation with title and subtitle strings.
Now I want to know how I can show the annotation with multiple lines of text. Please show me how to do it. Thanks for your time and help.

Check out the MapCallOuts demo from Apple.

You will need to sublass the annotation view and make your own callout see this example How to add more details in MKAnnotation in iOS this may also help source provided https://developer.apple.com/library/ios/#samplecode/WeatherMap/index.html

Related

Need a noob guide on using the UIPickerView and UIActionSheet together(only show pickerview when a textfield is tap)

I have been searching for days on on how I can use a pickerview on my textfield... I am very new to Ios programming and I have been searching the web for snippets of code that I can use on my program..
Basically this is just what I want:
I have a one of my textfield that ask for which Equipment type.. there is only 4 items to select on.
I want the program to show the picker view when they tap the equiptextfield and fill it with the item that they selected from the picker view.. then the picker view should be dismissed or go to the next field.
I found out online that the best way to do this is to use UIActionSheet to show/hide the pickerview only when that textfield was selected.
I need to know what I have to add on these items:
-my nib file(currently it has 1 view with a scrollview under it and all the fields is on it)
View
-scroll View
-my textfields under it...
-my header file... im really a noob so I really need to ask for the code
-my implementation file.. same as the header, I need the code please
Please dont think I didnt do my search because I did and there is just so much stuff online that its hard to figure out which to use, and those that I tried gave me errors.
thank you so much for any help anyone can provide.
Apple provides a good example of UIKit's controls. UICatalog
This sample is a catalog exhibiting many views and controls in the
UIKit framework, along with their various properties and styles.
If you need code to create specific UI controls or views, refer to
this sample and it should give you a good head start in building your
user interface. In most cases you can simply copy and paste the code
snippets you need.
Try. Do not be afraid to fail. Errors are experience too.
Btw, why are you using UITextField for such tasks? I suppose, the better way to select the one option from four is to use UISegmentedControl with 4 segments.

iPhone - is this screen available and customisable or do I need to create it from scratch?

I have noticed that in some apps they use what appears to be the the native display screen for a contact, it shows the contact photo, name, phone numbers and options to text message and add to favourites.
But it also will have some customized fields in it also like missed calls or some other non native contact information,
Here is an example screen shot taken from the Viber application:
I am quite new to iPhone development and I was wondering if this screen is made available to developers so that a contacts information can be presented from within an application with custom fields or if it is not and has to be developed from scratch?
EDIT:
Thanks for the help, with it I have successfully recreated the screen in a static manner, I have one more question and that is how would I make the cell that has the outgoing calls in it react to dymanic data?
So for instance there could be 10 calls there, so how do I adjust the size of the cell on the fly? And also whats the best object to use to allow the calls to be displayed? At the moment I'm using a UITextView to display the static data but I dont think this will work for dynamic data?
I think the developer made this screen there self, it just an UITableView with some custom UITableViewcells.
You can use the UITableView haderView property to insert the the top view with the image.
The just add sections for all the white cells, make use the the tableview style is set to grouped.
The screenshot is probably showing a custom UI that is made to look similar to the standard one.
You can get a similar interface with some limited customization options with the ABPersonViewController class (in the AddressBookUI framework). It basically takes an address book entry (ABPerson, you can also create this from scratch) and allows you to specify which properties (phone numbers, email addresses...) to show.
You can also customize what happens when you tap on a property by implementing the personViewController:shouldPerformDefaultActionForPerson:property:identifier: method in the view controller's delegate.
The above screen can be created by using UITableView. Since u're new to iPhone..I would suggest you to first go through some basics.
For UITableView, Here's the Link..
UITableView Class Reference
Also look for UITableView Cell Formatting in google.
Hope dat helps... :)
happy coding

geolocation iPhone

i have a Map view witch contain several object (Annotation) i would like when i click in one annotation it show to me the zoom ( maximum) of the object (annotation) in an other view
What I can get is that you want an image to be displayed when you select an annotation in different view which is referred as callout.
The following link might give you what you need, you might still need to customize it, you can also download sample code from there.
http://blog.asolutions.com/2010/09/building-custom-map-annotation-callouts-part-1/

How to show tickmark on image when it is selected

i want to show a tick mark on each picture which is selected. i have no idea about that.can anyone help me.
place a uibutton programmatically on the same location ad of selected picture .The button will be a custom button having transparent tick.png image.
Use need to use UIButton and two different set of images for more have a look to the below post,
Blog tutorial.
http://weheartgames.com/2009/06/simple-iphone-checkbox/
SO post,
Checkbox in iOS application
http://www.iphonedevsdk.com/forum/iphone-sdk-development/40592-any-way-make-uibutton-latch.html

Search Bar in Native Meassage App in iPhone

I need to know that what type of VIEW is used in the search bar of Create Message Screen. The bar searches , adds tabs as per the contacts selected and and also gives the option of selecting contacts form contact list througha button.
I am not able to understand whether it is a UITextView ot a UIView with variable size of UITextView.
Can Anyone please help me out in this regard.
Thsnks in advance!!
Since no one has yet answered my problem, and I have found the solution so will answer my own problem.
Yes, the search bar used in the native application is a UIScrollview with variable sized UITextView that converts the selected name into Number.
Thanks