iphone Programming Glossary: cgsizezero
How to add controls beneath a UIWebView http://stackoverflow.com/questions/1181609/how-to-add-controls-beneath-a-uiwebview view once it has loaded to the full size of its own content view. This size can be found using webView sizeThatFits CGSizeZero . If you did want to use UIWebView's privates to accomplish this I have a short code example of adding a view to the UIWebView's..
UIStringDrawing methods don't seem to be thread safe in iOS 6 http://stackoverflow.com/questions/12744558/uistringdrawing-methods-dont-seem-to-be-thread-safe-in-ios-6 NULL return _serialDrawingQueue ...and wrapping every draw call like this __block CGSize labelSize CGSizeZero TAUtils sharedUtils serialiseDrawing ^ labelSize label.text sizeWithFont label.font This seems to have improved things a..
3d text effect in iOS http://stackoverflow.com/questions/13766268/3d-text-effect-in-ios CGContextShowTextAtPoint ctx 0.0 3.0 fontOffset text UTF8String text.length CGContextSetShadowWithColor ctx CGSizeZero 0.0 NULL disable shadow CGContextSetCharacterSpacing ctx 1.0 CGContextSelectFont ctx fontName UTF8String fontSize kCGEncodingMacRoman..
Get height of UITableView without scroll bars http://stackoverflow.com/questions/2528073/get-height-of-uitableview-without-scroll-bars height at which there would be nothing more to scroll . Is there any way to do this I've tried tableView sizeThatFits CGSizeZero but that only returns a 0x0 CGSize. iphone cocoa touch uitableview uikit share improve this question Try the contentSize..
Bottom pop-up UIPicker? http://stackoverflow.com/questions/3441651/bottom-pop-up-uipicker I use void animateDatePicker BOOL show CGRect screenRect self.frame CGSize pickerSize self.datePickerView sizeThatFits CGSizeZero CGRect startRect CGRectMake 0.0 screenRect.origin.y screenRect.size.height pickerSize.width pickerSize.height CGRect..
Fixed labels in the selection bar of a UIPickerView http://stackoverflow.com/questions/367471/fixed-labels-in-the-selection-bar-of-a-uipickerview UIPickerView alloc initWithFrame CGRectZero pickerView release CGSize pickerSize pickerView sizeThatFits CGSizeZero CGRect screenRect UIScreen mainScreen applicationFrame #define toolbarHeight 40.0 CGFloat pickerTop screenRect.size.height..
How to determine the content size of a UIWebView? http://stackoverflow.com/questions/3936041/how-to-determine-the-content-size-of-a-uiwebview aWebView CGRect frame aWebView.frame frame.size.height 1 aWebView.frame frame CGSize fittingSize aWebView sizeThatFits CGSizeZero frame.size fittingSize aWebView.frame frame NSLog @ size f f fittingSize.width fittingSize.height I should point out there's..
Having trouble getting UIView sizeToFit to do anything meaningful http://stackoverflow.com/questions/3946665/having-trouble-getting-uiview-sizetofit-to-do-anything-meaningful @ NSStringFromCGRect theView.bounds NSLog @ theView.sizeThatFits @ NSStringFromCGSize theView sizeThatFits CGSizeZero void buttonTouched self logSizes UIButton btn UIButton buttonWithType UIButtonTypeRoundedRect btn.frame CGRectMake 10.0f..
Keep uitableview static when inserting rows at the top http://stackoverflow.com/questions/4279730/keep-uitableview-static-when-inserting-rows-at-the-top I don't want move the table view during its initial loading of content. if CGSizeEqualToSize self.contentSize CGSizeZero if contentSize.height self.contentSize.height CGPoint offset self.contentOffset offset.y contentSize.height self.contentSize.height..
iPhone: Adding a Done button within a pop up DatePicker frame http://stackoverflow.com/questions/6231587/iphone-adding-a-done-button-within-a-pop-up-datepicker-frame applicationFrame NSLog @ screenRect @ NSStringFromCGRect screenRect CGSize pickerSize self.pickerView sizeThatFits CGSizeZero NSLog @ pickerSize @ NSStringFromCGSize pickerSize CGRect startRect CGRectMake 0.0 screenRect.origin.y screenRect.size.height..
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 the red text. textColor 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..
Draw glow around inside edge of multiple CGPaths http://stackoverflow.com/questions/8480401/draw-glow-around-inside-edge-of-multiple-cgpaths paths bounds self.imageView.bounds color UIColor colorWithHue 0 saturation 1 brightness .8 alpha .8 offset CGSizeZero blur 10.0 imageView.image UIGraphicsGetImageFromCurrentImageContext UIGraphicsEndImageContext share improve this answer..
How do you shrink a UIPickerView on the iPhone? http://stackoverflow.com/questions/905969/how-do-you-shrink-a-uipickerview-on-the-iphone by applying an affine transform to an enclosing view. For example CGSize pickerSize pickerView sizeThatFits CGSizeZero pickerTransformView UIView alloc initWithFrame CGRectMake 0.0f 0.0f pickerSize.width pickerSize.height pickerTransformView.transform..
iOS - Linker Error, Duplicate Symbol http://stackoverflow.com/questions/9881721/ios-linker-error-duplicate-symbol UIFont fontWithName @ AGaramondPro Regular size 23.0 UITextAttributeFont nil self.view.layer.shadowOffset CGSizeZero self.view.layer.shadowOpacity 0.75f self.view.layer.shadowRadius 10.0f self.view.layer.shadowColor UIColor blackColor .CGColor..
|