Search Results

Search found 4 results on 1 pages for 'seniorlee'.

Page 1/1 | 1 

  • navigationController -- advertisement -- tableView in iPhone

    - by SeniorLee
    I've already implemented an app that has navigationController at the very top, and it shows tableView at the first, and if it's cell is clicked, another view is pushed into the navigationController. It's just an simple & normal app. But I want to put an ad between the navigationBar and the tableView. I've tried this and that. but it didn't work. Maybe there are several good ways to do it I believe. Hope somebody point me a good tutorial or throw me ideas. thanks.

    Read the article

  • fixed-size tableView cell in iPhone?

    - by SeniorLee
    I want to have all same size(width) cells in tableView no matter what accessory they have. If text in a cell almost fits to a cell, If i click that cell, check mark(accessory at the right) is displayed and some of characters goes to next line. it's annyoing. It's ok to do wordwrap. I can adjust cell's height. But I dont' want a cell displays different number of characters in an line depends on it's clicked or not. How can I do that?? thanks.

    Read the article

  • Displaying text in UILabel in iPhone

    - by SeniorLee
    OK. What's wrong with my code? - (void)viewDidLoad { [super viewDidLoad]; lblResult = [UILabel alloc]; } - (void)viewWillAppear:(BOOL)animated { lblResult.text = @"BlahBlah"; } I linked lblResult to Label object in IB well. But the label only shows the default text. Where's my BlahBlah?? And when the default string I set in the IB actually set to lblResult?? The reason that BlahBlah string is not displyed is I guess because lblResult.text is over-written by default string specified from IB. Just my guess. Can anyone make me clear with that?

    Read the article

  • Loading more than 10 images on iPhone??

    - by SeniorLee
    I'm trying to add more than 10 pictures on ScrollView. NSUInteger i; for (i = 1; i <= numberOfImage; i++) { NSString *imageName = [NSString stringWithFormat:@"d%dimage%d.png", imageSection, i]; UIImage *image = [UIImage imageNamed:imageName]; UIImageView *imageView = [[UIImageView alloc] initWithImage:image]; // setup each frame to a default height and width, it will be properly placed when we call "updateScrollList" CGRect rect = imageView.frame; rect.size.height = kScrollObjHeight; rect.size.width = kScrollObjWidth; imageView.frame = rect; imageView.tag = i; // tag our images for later use when we place them in serial fashion [scrollView addSubview:imageView]; [imageView release]; } This code is from Apple example and it works fine. But if the variable 'i' is bigger than 10, 'UIImage *image' is empty. The imageName seems to correct. But I don't know why it does not load image. Does anybody sees the problem?? And one more thing. If I do like that, does iOS controls memory automatically? I mean it's kind of wasting memory if all (more than 10) images are loaded on memory even they are not displayed. I've heard that iOS loads images only displayed on screen and free images those are not displayed. Is that right? Thanks for reading.

    Read the article

1