Customize UINavigationBar Background

You can customize UINavigationBar by implementing drawRect
Add this code in to bottom of your delegate or create new file.
@implementation UINavigationBar (UINavigationBarCategory)
/** Solid Color **/
- (void)drawRect:(CGRect)rect {
UIColor *color = [UIColor redColor];
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextSetFillColor(context, CGColorGetComponents( [color CGColor]));
CGContextFillRect(context, rect);
self.tintColor = color;
}
/**
//Image Background
- (void)drawRect:(CGRect)rect {
UIColor *color = [UIColor blackColor];
UIImage *img = [UIImage imageNamed: @"top-nav.png"];
[img drawInRect:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];
self.tintColor [...]

You can customize UINavigationBar by implementing drawRect

Add this code in to bottom of your delegate or create new file.

@implementation UINavigationBar (UINavigationBarCategory)

/** Solid Color **/
- (void)drawRect:(CGRect)rect {
UIColor *color = [UIColor redColor];
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextSetFillColor(context, CGColorGetComponents( [color CGColor]));
CGContextFillRect(context, rect);
self.tintColor = color;
}

/**
//Image Background
- (void)drawRect:(CGRect)rect {
UIColor *color = [UIColor blackColor];
UIImage *img = [UIImage imageNamed: @"top-nav.png"];
[img drawInRect:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];
self.tintColor = color;
}**/
@end

 

Saleslogix Code Snippets – Part 1

1. Error handler
On Error Resume Next
objSLXDB.ExecuteSQL(strSQL)
If ErrorCheck (Application.Translator.Localize(“Error executing SQL:”)) > 0 Then Exit Sub

1. Error handler

On Error Resume Next
objSLXDB.ExecuteSQL(strSQL)
If ErrorCheck (Application.Translator.Localize(“Error executing SQL:”)) > 0 Then Exit Sub

 

Free Silverlight Controls

Viblend
Nearly all Web applications use menu controls as fundamental building blocks of the presentation layer. If you need an easy to use a feature complete Silverlight Menu control, VIBlend Menu for Silverlight must be on the top of your list. You can download it as part of the VIBlend Silvelright Controls package and use it [...]

Viblend

Nearly all Web applications use menu controls as fundamental building blocks of the presentation layer. If you need an easy to use a feature complete Silverlight Menu control, VIBlend Menu for Silverlight must be on the top of your list. You can download it as part of the VIBlend Silvelright Controls package and use it for commercial and non-commercial purposes free of charge

http://www.viblend.com/products/net/silverlight/controls/free-silverlight-controls.aspx

 
© 2010 Suma Software Inc