reducing size of the section in tableview

i am very much new to iphone development ,I wanted to reduce the size of a section in the grouped table view i.e reducing the width of the section . how can it be implemented thanks in advance


- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section {
    return kHeightForHeaderInSection;

 - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section {
        // wrapperView - by default has the width of the table, you can change the height
        // with the heightForHeaderInSection method
        UIView *aView = [[[UIView alloc] initWithFrame:CGRectZero] autorelease];

        // your real section view: a label, a uiview, whatever
        CGRect myFrame; // create your own frame
        myFrame.origin = CGPointMake(10, 0);
        myFrame.size = CGSizeMake(tableView.bounds.size.width-10,kHeightForHeaderInSection); 
        UILabel *label = [[[UILabel alloc] initWithFrame:myFrame] autorelease];
        label.text = @"myText"
        [aView addSubview:label];

        return aView;

Need Your Help

Printing 2 half landscape page in 1 letter size sheet using ITextSharp

model-view-controller itextsharp mvcrazortopdf

I'm Generating my PDF file using MvcRazorToPdf and ITextSharp. My code is like this:

Best way to update Ruby to the latest 1.9 version on OS X?

ruby osx

Does Mac OS X support ruby version 1.9.+? Is it recommended to update to 1.9 or should I wait?