Get In Touch
This form does not yet contain any fields.

    Entries in ios (7)

    Thursday
    Jan132011

    Regular Expressions on iOS - NSRegularExpression

    Regular Expressions are a vital part of most developer's toolkits and can be incredibly useful when processing text strings.  Apple recently introduced regular expressions at WWDC 2010 for iOS 4.0 as the framework NSRegularExpression.  I've recently started working with this framework for a project that does some web scraping and created some functions that I think would be useful to most iOS devs.

    This first example will take in a string and will return the first match it finds to the specific regular expression syntax, in this example that expression will find all http URLs.  

    The second example will take a regex pattern, find it in the given string and substitute all matches for that pattern creating a new string when done.  The sample function below will find all whitespace and substitute it for '&'.

    Thursday
    Dec302010

    Reserving your iOS App Name

    One of the more frustrating experiences developing for iOS is completing an entire App and going to publish the App in the App Store and finding out that the name you chose has been taken by another application.  The only process in place today to find out if a name is truely available and/or reserve your name is to create an app on the App Store and wait to upload the binary until you are done with the project.  This method does have a hard limitation of 120 days and if you do not upload a binary by then, Apple deletes the App submission and prevents you from ever registering that name again.  All of this to avoid the same proliferation of name squatting that occurs with domain names. Apple really needs to come up with a better approach for developers that will provide a reasonable accomidation to permit developers to register a name of a project they are working on.

    Dave Wood over at Cerebral Gardens has a good suggestion for a system that would permit developers to reserve up to 10 unused app names per account.  I personally think this is a little high and would probably encourage squatting but I like the general idea and think it could be successful with a smaller number, somewhere around 3 to 5.

    Page 1 2