Customizing Apple Elements for Enterprise iOS Apps

Discussion in 'iOS Programming' started by xStep, Jul 14, 2012.

  1. xStep macrumors 68000

    Joined:
    Jan 28, 2003
    Location:
    Less lost in L.A.
    #1
    Friday I spent time figuring out how to customize UIAlertView to allow altering the message text color and altering the background color of that text body. It was an interesting exercise to say the least. As a side note, when the messages gets large, Apple changes the UILabel to some type of internal custom UIWebView to allow scrolling.

    Such a hack wouldn't be allowed in the App store I'm sure, but this is an enterprise distributed app that doesn't have to go through that process. I'm wondering how popular this tactic is in enterprise development. Can those with such exposure please comment.

    Thank you for your insight.

    P.S. For those wondering, yes, I placed in defensive coding in case Apple alters something that would break the subclass. I coded (and tested) it to gracefully downgrade to the normal UIAlertView expectations. I wish I was allowed to share the code as I think I did nice work on this. :)
     
  2. jnoxx macrumors 65816

    jnoxx

    Joined:
    Dec 29, 2010
    Location:
    Aartselaar // Antwerp // Belgium
    #2
    To be honest, instead of trying to altert basic Apple Elements, we just entirely create our own for a project.. And it's mostly a nice starter for another project. So for example for the UIAlertView we create our own, with our own enum's etc. This is then also allowed on the APple store :)
     

Share This Page