How to show tickmark on image when it is selected - iphone

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

Related

How to make select button like Apple Pages app

I can select multiple font styles in Apple Pages app, orange colored box on the screen.
How to make it?
I can't find any ui component in the iOS SDK like this, multiple select. UISegmentControl is only for one select like radio button.
use a UISegmentControl in momentary mode to have the bar :)
set custom background images for the cells
there is no stock control but this is quite basic using this approach
No default thing is available you have to do it by yourself. You set tags for each button and only one selector. By checking the selected button tags execute you specific code.
For that, yon need to take UISegment Control and make it's background images custom. Also you can set the width of the each segment.
Then you will achieve your goal.
Cheers!

Custom Cover Flow Implementation in iOS

Instead of Images in coverflow, I want to have a list buttons in a scrollView(For each of the image in the coverflow), clicking upon them should navigate to the other page, which again contains a list of buttons inside scrollview.
You can use iCarousel an open source library which accept UIViews as components :)
Hope this helps
Use - https://github.com/appcelerator/titanium_mobile/blob/master/iphone/Classes/AFOpenFlow/AFOpenFlowView.m
And override the touchesEnded event in AFOpenFlowView.m
This might help you.

Iphone Toolbar Icon with Dynamic Count

I've done a lot of googling and am at the end of my rope so here goes ... I just need to know if this is possible so I can design a series of screens for an Iphone app.
In my app you are able to leave comments on a certain topic, I would like an icon in the toolbar that displays a word bubble with a plus sign in the center when there are no existing comments and if there are existing comments I would like to display the same word bubble but instead of the plus I want to show the number of existing notes programatically.
Is this possible?
thank you
Yes, it's possible. You populate a toolbar with UIBarButtonItem instances. You can create one of these using
-(id) initWithCustomView:(UIView *)myCustomView;
In your custom view, you can put any graphics you want, including a plus sign, or a subview with a UILabel that shows the number of comments.
When the status changes (comments are added or removed), you just need to create a new UIView and set the toolbar.customView to that view.

How to show more text on annotation view

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

Tab Like Selection

Can anybody please tell me how they have implemented the below thing whick looks to me like a TabBar but has something different from a simple tabbar.
The thing having "Offer" and "Wall", when each one is clicked, presents a different view.
Any sample code will be appreciated
Its a custom UIButton.
EDIT: What UI element might this be? (Custom tab-bar?). I had asked the same question a few weeks ago. There are two good answers there.
And google up for custom UIButton. You can find a few samples on your search
Its a custom view. You can always implement this kind of thing by using images. Say you have 2 different images. In one image offer is selected, and in another wall is selected. And you are using an image view to show them. An invisible button is placed in proper place. After tapping the button you can set the right image. And also if the images are not overlapping then you can use custom button.