iphone Programming Glossary: colorwithwhite
iOS Paper fold (origami / accordion) effect animation, with manual control http://stackoverflow.com/questions/11157888/ios-paper-fold-origami-accordion-effect-animation-with-manual-control 1.0 800.0 CALayer origamiLayer CALayer layer origamiLayer.frame view.bounds origamiLayer.backgroundColor UIColor colorWithWhite 0.2 alpha 1 .CGColor origamiLayer.sublayerTransform transform view.layer addSublayer origamiLayer setup rotation angle double..
Removing text shadow in UITableViewCell when it's selected http://stackoverflow.com/questions/1184014/removing-text-shadow-in-uitableviewcell-when-its-selected I've added a text shadow to cells in my UITableView to give them an etched look cell.textLabel.textColor UIColor colorWithWhite 0.2 alpha 1.000 cell.textLabel.shadowColor UIColor whiteColor cell.textLabel.shadowOffset CGSizeMake 0 1 Since the shadow..
Styling the cancel button in a UISearchBar http://stackoverflow.com/questions/1200149/styling-the-cancel-button-in-a-uisearchbar searchbar UISearchBar searchBar UISearchBar alloc initWithFrame CGRectMake 0 0 320 40 searchBar.tintColor UIColor colorWithWhite 0.8 alpha 1.0 This is what it looks like now notice how the cancel button is also gray http twitpic.com c0hte Is there a..
UISearchDisplayController with no results tableView? http://stackoverflow.com/questions/1214185/uisearchdisplaycontroller-with-no-results-tableview NSString searchString savedSearchTerm searchString controller.searchResultsTableView setBackgroundColor UIColor colorWithWhite 0.0 alpha 0.8 controller.searchResultsTableView setRowHeight 800 controller.searchResultsTableView setScrollEnabled NO return..
iOS Custom UIImagePickerController Camera Crop to Square http://stackoverflow.com/questions/17712797/ios-custom-uiimagepickercontroller-camera-crop-to-square CGFloat barHeight f.size.height f.size.width 2 UIGraphicsBeginImageContext f.size UIColor colorWithWhite 0 alpha .5 set UIRectFillUsingBlendMode CGRectMake 0 0 f.size.width barHeight kCGBlendModeNormal UIRectFillUsingBlendMode..
UITableView : crash when adding a section footer view in empty section http://stackoverflow.com/questions/1893712/uitableview-crash-when-adding-a-section-footer-view-in-empty-section UILabel alloc initWithFrame CGRectMake 200 10 50 44 label.backgroundColor UIColor clearColor label.textColor UIColor colorWithWhite 0.6 alpha 1.0 label.textAlignment UITextAlignmentCenter label.lineBreakMode UILineBreakModeWordWrap label.numberOfLines..
Add UIView Above All Other Views, Including StatusBar http://stackoverflow.com/questions/2666792/add-uiview-above-all-other-views-including-statusbar bounds statusWindow.windowLevel UIWindowLevelStatusBar statusWindow.hidden NO statusWindow.backgroundColor UIColor colorWithWhite 0.0 alpha 0.7 statusWindow makeKeyAndVisible When you want to remove the window from the screen it looks as though you release..
Customize UIBarbuttonitem with Background Images http://stackoverflow.com/questions/3093468/customize-uibarbuttonitem-with-background-images button setTitleColor UIColor whiteColor forState UIControlStateHighlighted button setTitleShadowColor UIColor colorWithWhite 1.0 alpha 0.7 forState UIControlStateNormal button setTitleShadowColor UIColor clearColor forState UIControlStateHighlighted..
Inner Shadow in UILabel http://stackoverflow.com/questions/3231690/inner-shadow-in-uilabel UIGraphicsGetCurrentContext rect CGContextSetShadowWithColor UIGraphicsGetCurrentContext CGSizeMake 0 1 1.0f UIColor colorWithWhite 0.0 alpha 0.5 CGColor cutout drawAtPoint CGPointZero create negative image UIGraphicsBeginImageContextWithOptions rect.size.. whiteColor setFill text_ drawAtPoint CGPointMake self.bounds.size.width 2 fontSize.width 2 0.5 withFont font UIColor colorWithWhite 0.76 alpha 1.0 setFill text_ drawAtPoint CGPointMake self.bounds.size.width 2 fontSize.width 2 1 withFont font finally apply..
Adjusting navigationItem.titleView's frame? http://stackoverflow.com/questions/3681990/adjusting-navigationitem-titleviews-frame clearColor titleLabel.titleLabel.font UIFont boldSystemFontOfSize 20.0 titleLabel.titleLabel.shadowColor UIColor colorWithWhite 0.0 alpha 0.3 titleLabel.titleLabel.textAlignment UITextAlignmentCenter this doesn't work either titleLabel addTarget self..
How to make an ipa file? http://stackoverflow.com/questions/4711586/how-to-make-an-ipa-file
Change the navigation bar's font http://stackoverflow.com/questions/5832036/change-the-navigation-bars-font 400 44 label.backgroundColor UIColor clearColor label.font UIFont boldSystemFontOfSize 20.0 label.shadowColor UIColor colorWithWhite 0.0 alpha 0.5 label.textAlignment UITextAlignmentCenter label.textColor UIColor whiteColor label.text self.title self.navigationItem.titleView..
Change Navigation bar Background image on each navigation http://stackoverflow.com/questions/6692517/change-navigation-bar-background-image-on-each-navigation label setBackgroundColor UIColor clearColor label.font UIFont boldSystemFontOfSize 20.0 label.shadowColor UIColor colorWithWhite 0.0 alpha 1 label.textAlignment UITextAlignmentCenter label.textColor UIColor whiteColor label.text self.topItem.title self.topItem.titleView..
-[CALayer release]: message sent to deallocated instance http://stackoverflow.com/questions/7402171/calayer-release-message-sent-to-deallocated-instance CGSizeMake 0 1 welcomeTo.text @ Welcome to welcomeTo.textAlignment UITextAlignmentLeft welcomeTo.textColor UIColor colorWithWhite 1.0 alpha 0.6 container addSubview welcomeTo UILabel progressions UILabel alloc initWithFrame CGRectNull autorelease progressions.backgroundColor.. 0 1 progressions.text @ Progressions progressions.textAlignment UITextAlignmentCenter progressions.textColor UIColor colorWithWhite 1.0 alpha 0.6 container addSubview progressions UILabel blurb UILabel alloc initWithFrame CGRectNull autorelease blurb.backgroundColor.. what you're doing check out the Getting Started guide blurb.textAlignment UITextAlignmentLeft blurb.textColor UIColor colorWithWhite 1.0 alpha 0.6 container addSubview blurb UIButton button1 UIButton alloc initWithFrame CGRectMake 20 170 280 88 button1..
iOS - How to achieve emboss effect for the text on UILabel? http://stackoverflow.com/questions/8467141/ios-how-to-achieve-emboss-effect-for-the-text-on-uilabel setFill CGContextFillRect gc rect Draw the interior shadow. CGContextSetShadowWithColor gc CGSizeZero 1.6 UIColor colorWithWhite .3 alpha 1 .CGColor invertedMask drawAtPoint CGPointZero invertedMask nil done with invertedMask let ARC free it image UIGraphicsGetImageFromCurrentImageContext.. image.size NO image.scale CGContextSetShadowWithColor UIGraphicsGetCurrentContext CGSizeMake 0 1 1 UIColor colorWithWhite 0 alpha .15 .CGColor image drawAtPoint CGPointZero UIImage resultImage UIGraphicsGetImageFromCurrentImageContext UIGraphicsEndImageContext..
CGColorRef causing crash http://stackoverflow.com/questions/9762969/cgcolorref-causing-crash the way back to a line crashing when being passed 2 CGColorRefs. Here are the objects CGColorRef startColor UIColor colorWithWhite 0.92 alpha 1.0 CGColor CGColorRef endColor UIColor colorWithWhite 0.94 alpha 1.0 CGColor NSLog @ start @ end @ startColor.. Here are the objects CGColorRef startColor UIColor colorWithWhite 0.92 alpha 1.0 CGColor CGColorRef endColor UIColor colorWithWhite 0.94 alpha 1.0 CGColor NSLog @ start @ end @ startColor endColor The NSLog returns a crash. What's wrong with them EDIT..
|