Tagged: iPhone RSS Toggle Comment Threads | Keyboard Shortcuts

  • Ullrich 19:49 on 13. March 2012 Permalink | Reply
    Tags: , iPhone   

    Wrapping the tableView in a custom view in UITableViewController 

    Ever wanted to add a different view north of your table view without making it the tableHeaderView?

    Here’s what you need:

    @property (nonatomic, retain) UITableView *internalTableView;
    
    - (void)loadView;
    {
        [super loadView];
        self.internalTableView = self.tableView;
        self.view = [[[UIView alloc] initWithFrame:self.view.frame] autorelease];
        [self.view addSubview:self.tableView];
        self.tableView.frame = self.view.bounds;
    }
    
    - (void)viewDidUnload;
    {
        self.internalTableView = nil;
        [super viewDidUnload];
    }
    
    - (void)dealloc;
    {
        internalTableView = nil;
        [super dealloc];
    }
    
    // here's the finesse
    - (UITableView *)tableView;
    {
        if (!self.internalTableView) {
            return [super tableView];
        }
        return self.internalTableView;
    }
     
  • Gernot 16:10 on 27. July 2010 Permalink | Reply
    Tags: , iPhone   

    If you ever need to explain to a client why enabling iOS4 Multitasking is more than an entry in info.plist, point him to Doms list of non-obvious things to consider: http://cocoa-dom.tumblr.com/post/866039292/the-hidden-complexity-of-ios-4-multitasking

     
    • everydaypanos 14:56 on 7. August 2010 Permalink

      Why write code for “clients” when you can write for yourself. Plus you skip the annoying explanations to others.

      (I would like to suggest that you also use Rewrd as a Micropayments Service for your blog. Thx.)

  • Gernot 12:51 on 20. July 2010 Permalink | Reply
    Tags: , iPhone,   

    Double Rainbow! 

    When you experience strange performance lags on an iPhone 4, make sure that your @2x images are *really* double the size of the original images. Especially if used in -colorWithPatternImage:

     
  • Ullrich 17:17 on 20. May 2010 Permalink | Reply
    Tags: iPhone, ,   

    Finishing & canceling concurrent NSOpera… 

    Finishing & canceling concurrent NSOperations requires to trigger KVO for isFinished and isCancelled.

     
  • Ullrich 13:31 on 19. May 2010 Permalink | Reply
    Tags: iPhone,   

    Prevent UIWebView from horizontal scrolling.

    HTML meta:

    <meta name = "viewport"
          content = "initial-scale = 1.0, user-scalable = no, width = 320"/>

    CSS:

    text-overflow: ellipsis;
    overflow: hidden;
     
    • Andrews 11:28 on 25. September 2011 Permalink

      the meta does not work for me.

  • Ullrich 13:02 on 26. April 2010 Permalink | Reply
    Tags: iPhone,   

    If you want your subviews rendered before the alpha value is applied you can use the UIViewGroupOpacity Info Plist setting.

     
  • Gernot 15:12 on 23. June 2009 Permalink | Reply
    Tags: , iPhone,   

    Der magische Doppelbesen ist unser Freund. 

    If nothing else helps, and Xcode is not accepting provisioning profiles, just remember that the magic double-brush is your fearless friend. “Nuff said.

     
  • Ullrich 21:51 on 9. June 2009 Permalink | Reply
    Tags: , iPhone   

    Problem: No developer certificate available for signing even though certificates are in the keychain (“no profiles currently match”).

    Solution: Make sure the certs (developer & distribution) _and_ the WWDR certificate are in the login keychain (and only there. not in system). Also make sure this keychain is the default keychain (right click it).

     
c
compose new post
j
next post/next comment
k
previous post/previous comment
r
reply
e
edit
o
show/hide comments
t
go to top
l
go to login
h
show/hide help
shift + esc
cancel