¡@

Home 

2014/10/15 ¤U¤È 10:13:43

iphone Programming Glossary: segcontrol

Custom UISegmentedControl

http://stackoverflow.com/questions/1281601/custom-uisegmentedcontrol

code in addition to having 2 different states for the on and off positions void viewDidLoad super viewDidLoad Set set segControl background to transparent CGRect rect CGRectMake 0 0 1 1 UIGraphicsBeginImageContext rect.size CGContextRef context UIGraphicsGetCurrentContext.. context rect UIImage transparentImage UIGraphicsGetImageFromCurrentImageContext UIGraphicsEndImageContext self.segControl setBackgroundImage transparentImage forState UIControlStateNormal barMetrics UIBarMetricsDefault self.segControl setDividerImage.. self.segControl setBackgroundImage transparentImage forState UIControlStateNormal barMetrics UIBarMetricsDefault self.segControl setDividerImage transparentImage forLeftSegmentState UIControlStateNormal rightSegmentState UIControlStateNormal barMetrics..

App crashes with reason: Collection <__NSArrayM: 0x7071700> was mutated while being enumerated

http://stackoverflow.com/questions/5115344/app-crashes-with-reason-collection-nsarraym-0x7071700-was-mutated-while-be

IBOutlet UITextField paraksts IBOutlet UITextField apraksts IBOutlet UIPageControl pageControl UISegmentedControl segControl UIScrollView horView UIButton nosutitButton UIImage im NSMutableArray bildes NSMutableArray bildesFileName @property nonatomic.. @property nonatomic retain IBOutlet UIScrollView horView @property nonatomic retain IBOutlet UISegmentedControl segControl @property nonatomic retain IBOutlet UIPageControl pageControl IBAction textFieldDoneEditing id sender IBAction buttonPressed.. sender IBAction buttonPressed NSString dataFilePath void applicationWillTerminate NSNotification notification IBAction segControlClicked id sender @end implementation file #import MainViewController.h @implementation MainViewController @synthesize virsraksts..