如何在UIsegment Control中为每个段设置图像

问题描述:

我正在开发一个应用程序.因此,我需要在segment控件中为各段设置图像.所以请告诉我该怎么做.

Iam developing one application.In that i need to set the image for segments in the segment control.So please tell me how to do that one.

使用 [segmentedControl setImage:forSegmentAtIndex:]; 方法