
David Quinlan on normaali kaveri päivä työtä ja vain vähän koodaus kokemusta. Mutta hän ja ystävä asui unelma ja kampi ulos yksinkertainen iPhone App on viikonloppu. Here's how he tekivät sen:
"Thai, salaatti tai ramen?" Se lounasaikaan tyypillinen torstaina ja meidän mielestämme on hyvä, että miljoonat ihmiset ympäri maailmaa ovat pohtineet samaa asiaa. Tämä kysymys on meille sivustosta, tekee meistä osaa tuhansia ihmisiä, jotka halusivat rakentaa iPhone app ajaksi ", että."
Olen tuote-ja markkinointi kaverin kanssa joitakin suunnittelu-ja koodaus taitoja.
Roy on kehittäjä joidenkin liiketoiminnan taju. Yhdistetty, teemme hyvän joukkueen ja täydentävät toistensa osaamista hyvin, mutta vasta aloitti työt Objective-C: viime vuonna, kuten monet muut, jotka pyrkivät ulos iPhone kehitystä. Olemme jo rakennettu app. tai kaksi, joten emme tunne kielen ja puitteet. Kuitenkin, kuten kaikki uudet hankkeet, voit yleensä tehdä vähän tutkimusta ymmärtää, miten lähestyä eri haasteet ... varsinkin maailmassa määritelty 320 × 480 pikseliä.
Pisimmän aikaa, olemme ollut noin ajatus app. hauskaa. Jälkeen poisheittäminen pari hyviä ideoita (koska ne ovat liian monimutkaisia tai pikahakua App Store osoitti, että joku muu on jo se hyvin), lounasaikaan pysähtyy meitä yksinkertainen, hauska idea auttaa ihmisiä kiinni päätösten välillä.
Mutta vaikka useimmat ihmiset haluavat luoda suuren iPhone app, ystäväni ja minä mennä vielä pidemmälle, jolloin sopimuksen loppuun projektin puitteissa viikonloppu-tai realistisesti, meidän app ei koskaan valmistunut.

Käytössä paperinpala, me sepustus ulos kaksi-kolme wireframes ja kehitetty hahmotella joitakin perus-ruuduissa. Päätämme App joka tarjoaa jopa kolme eri vaihtoehtoa. Voit kirjoittaa oman vastauksen, kuten thai, salaatti tai ramen-ja sinun täytyy vain valita satunnaistettu, niin näet vastauksen päätöksen. Päätämme käyttää pelikortit kuin teemana. Heti, me ympyrä "must have"-ominaisuudet (ensisijaisesti), sitten "halunnut" ominaisuudet (viimeinen kysymys), ja lopuksi ominaisuudet, jotka tarvitaan enemmän tutkitaan. Jätämme lounas torstaina hieman läksyjä ja suunnittelet yhdessä lauantaina.
Oma kotitehtävien myös määrittämiseksi näyttää, tuntuu ja vuorovaikutus kunkin näytöllä. Roy on tutkimuksen joitakin Xcode ominaisuuksia meillä ei ole ollut mahdollisuutta pelata vielä meidän "oikeaa" työpaikkaa pääasiassa animaatioita ja satunnaistamista.
Lauantaiaamuna, Tapaamme kahvilassa, joka oli ilmainen Wi-Fi, väittävät suuren pöydän, jotta voimme istua side-by-side ja ota ensimmäinen monista suurista kupillista kahvia. Luomme yhteisen Dropbox kansion hanke-Basic tili on ilmainen ja tulee 2 Gt tallennustilaa. Dropbox on tärkeä, koska se antaa meille mahdollisuuden multitask samaan hankkeeseen kaikki / kaikki muutokset synkronointi reaaliajassa. Laajoissa hankkeissa, sinun kannattaa harkita GitHub.
Meillä Vedä tarkemmin kertoa, mitä haluamme saavuttaa meidän app. sekä perus wireframes. Koska meillä on vain viikonloppu saattaa tämä app, päätämme keskittyä vain "must have"-ominaisuudet. Kehittäjä voi aina antaa ominaisuus päivittää myöhemmin sisällyttää "kiva olla" piirteitä.
Going näyttö-by-näytön, me yksityiskohtaisesti seikat sivulla, tyyli hoitoja, asettelu, ajoitus, jne. Olemme myös keskustella siitä, mitä Roy sai tietää toiminnan edistäminen kortin etukannen myöhemmin, koska tämä oli yksi päätoiminnallisuuden App. Me lyhyen katsauksen Quartz 2D-ja Core Animation kirjastot, koska meillä ei ollut aikaisemmin tehnyt mitään työn kanssa. Me edes keskustella käyttäen UIWebView tehdä animaation kuluessa WebKit n CSS. Lopulta löydämme yksinkertaisen ratkaisun tavallisilla UIViews ja UIButtons. UIView luokka on noin animaatio luokan menetelmiä, ja yksi rakennettu siirtymiä on läppä vaikutus. Mitä satunnaistamisen, tiesimme useimmilla kielillä antaa satunnainen toiminto, ja Objective-C ei ole poikkeus. Näissä app kaikki Halusimme yksinkertaisen menetelmän sattumanvaraisesti array. Roy löytyi pari esimerkkiä tästä, mutta joka erottui oli yli klo Dr. Touch: n verkkosivuilla. Hän kuvailee lähestymistapaa, joka toteuttaa luokan laajennus menetelmällä, joten voit helposti sekoittaa mitään array.
Me sukeltavat omassa MacBookin plussat ja Borg-kuten keskittyä myös yksittäisten alojen asiantuntemusta. En avata Photoshopissa ja alkoi rakentaa näytöt. Ensimmäisessä näytössä on oletuksena kuva. Tämä on ensimmäinen näyttö ihmiset näkevät, kun sovellus käynnistyy ja alkaa lastaus. Sovellukset voidaan rakentaa joko pysty tai vaaka mieltä. Jos haluat rakentaa oman app vuonna maisemakysymykset kuten meillä, voit silti luoda oletuskuvan joka näyttää Pysty-näkymässä. Yksinkertaisesti luo maisemakysymykset ja kiertää myötäpäivään tai vastapäivään (riippuen siitä haluatko vasemmalle tai oikealle maisemakysymykset). Nyt oletuskuvan kuormitusten Portrait mieltä, mutta koska kuvien kierretään, käyttäjä kierre iPhone maisemakysymykset.
Sitten viettää seuraavat pari tuntia luoda comps, taustakuvat, nappeja, kortti (edessä ja takana) ja info-sivu. Olen myös viettää aikaa keskittyä sovellus-kuvaketta. Tämä on tietenkin "kasvot" oman App-rintanappi kunnia, joten sinun kannattaa laittaa huolellisesti harkinnut kuvaketta kuvia. Muista, että sinun kuvaketta sekä 57 × 57 ja 512 × 512 koossa. Kun valmis, lataan sen Dropbox niin, että Roy voisi alkaa käyttää luovia tekijöitä.

Mennessä, kun olen lyhyesti takaisin Roy: n kannettava tietokone, hän loi uuden Xcode hanke ja on jo nyt noin koodilla animoida vihreät laatikot että Käännä sitten. Vaikka hän työskentelee prototyyppi iPhone Simulator, nappaan Info.plist tiedoston ja muokata joitakin asetuksia - eliminoida tilarivillä app näyttönimi, poista kiilto alkaen ikoni, jne. Me sitten päättää, se on aika lisätä joitakin todellista kuvia meidän prototyyppi. Panemme taustakuvan, etu-ja takapuolella kortit ja navigointi painikkeet. Paikannus on pois päältä (on paljon), mutta kortit näyttää hyvältä ja se on flipping sujuvasti. Emme huonoja matematiikkaa, mutta lopulta saada tarkkaa väli ja asemointi, että haluamme jokaisen kortin. Olemme leikkiä ajoituksen läppä, asettaa päälle / pois valtioiden navigointi painiketta ja nyt se tuntuu hyvältä.

Näkeminen palaset yhdistyvät App osoittaa minulle, että on pari kuvaa, joka tarvitsee hienosäätöä. Teen muutoksia Roy alkaa työstää customizing näytön ja tiedot-näyttö. Mukauta näyttö on paikka, jonka avulla ihmiset voivat kirjoittaa mitä he haluavat näyttää päällisin puolin kortin. We limit it to 25 characters… anything more than that and it writes over/outside of the card. We talk through this screen a bit more in detail. The interaction in each field, how the keyboard acts, and how we save before going back to the cards. We spend a bit of time in Interface Builder wiring up exactly how we want this page to look and act. The info page is completely optional, but we like to have it because it includes additional ways to reach us.
Wow, seven hours and fours large coffees later, we have a lot done, but there's still lots more to go. What we have now is an app that fires up; displays a default loading screen; gets people to a screen that shows three cards (back of the card showing); they can select any/all of the cards and the cards flips to show the front of the card; they can click on a button labeled “Try Again” to reset the cards; they can click on a button labeled “Customize” that opens a new screen; the “Customize” screen allows you to enter text into 3 separate fields with a max of 25 characters in each field; and you can get to the Info screen. We spend the last hour of the day together cleaning up code and discussing what we have left to accomplish tomorrow.

On Sunday, we meet at another coffee shop with free Wi-Fi. Coffee first. We feel like we're about 80 percent done before we start working again. The major work left for the day ahead is saving the custom text, displaying the custom text on the face of the card, and randomizing the text. We had additional functionality ideas, but we kept ourselves honest, and kept the scope creep to a minimum. One example of this was the method for storing/saving the custom text on each of the three cards. Roy could have created a sqlite database or used Core Data, but the easiest approach was to just use the built in standardUserDefaults object found in the NSUserDefaults class. Using this method stores the values to the app's settings just fine for our needs and saves us a lot of time.

While Roy is working on those items, it's a perfect opportunity for me to prepare some of the things we'll need later that day. When you submit an app to the App Store, it's not a simple upload of a file. Apple requires the following information for every app submission: Application Name, Application Description, Device Requirements, Primary and Secondary Category, Subcategories, Copyright, App Rating, Keywords, SKU Number, Application URL, Screen shots, Marketing Description, Support URL, Support Email Address, End User License Agreement, and Pricing / Availability.
So, I prep all the app submission information while Roy is busy coding away, first searching the App Store for similar apps and their names. We like “Stuck?” and luckily no one else is using it, so we go with that name. I create the app description, add some keywords, set the price and determine where we want to sell this app (just in the USA, certain countries or worldwide). Then I register a domain name (stuckapp.com) to be used for the application URL/support URL and linked it to a newly created Tumblr account. I also created the required support email address. The other items you'll want to prepare in advance are: screenshots (up to five), a large icon (512×512) and, if this is your first time submitting an app, any certificates/provisioning profiles.
Things tend to take longer than you expect, and even though we're basically finished with the app by early Sunday afternoon, we still spend a couple of more hours tweaking it and preparing everything for the App Store submission—cleaning code and fine tuning as we go along. We spend the majority of the day on one computer pushing pixels, formatting, and ensuring the timing and user interaction was exactly as we both wanted. After almost five hours of work on Sunday, we have the app that we both envisioned. We begin testing in the iPhone simulator and then on devices (both iPhone and iPod touch) for stability and functionality. Again, being a simple app, it was easy and quick to test.
After proving its stability, we decide to publish Stuck? to the App Store. My first attempt at publishing another app by myself took two days—attempt, fail, Google, attempt, fail, Google more, etc.—until it finally worked. But the second time around was much easier and faster. We copy/paste all the text prepared earlier and then added the screenshots and images. All in all, we have our app uploaded in about 15 minutes. At this point, we're excited, hungry and tired, but also quite proud that we completed a solid app over a weekend in a coffee shop.

We had our fingers crossed that the App Store would approve our app. And, as amazed as we were that we could finish an app over the weekend, the real surprise came after we submitted to the App Store. We submitted the app on Sunday evening. It changed status from Waiting for Review‚ to In Review, on Monday. On Tuesday, we received an email informing us that our app was Ready for Sale. Approved in two days! That has to be a record‚ especially before the holidays.
Especially after talking about building an app together for so long, like so many people reading this article, I must say, the fulfillment is immense. We finally did it.

TIPS FOR COMPLETING AN APP OVER A WEEKEND
1. You can't do it yourself. You can, but you wouldn't want to. Ideally, you want to partner with someone with a different, complementary set of skills. Partner with someone who knows and respects your area of expertise, but is even more confident and knowledgeable about their own skills. Good communication is implied in an effort such as this so you'll go through periods of rapid fire questions bouncing ideas off each other and then periods of silence as you work on separate tasks. There's a lot to get done and multitasking will be key.
2. Multitask. As suggested above, working with someone who complements your own skills allows you to multitask. Mitä tarkoitan? For example, in the beginning, once you scratch out a wireframe of an idea, one person can begin coding - putting placeholder buttons and blocks into place. At the same time, the other person can create comps and then cut out each element to use when they get to the right stage. Also, at the tail end of the project, one person can wrap up the project and clean the code while the other prepares all the images and marketing copy for the App Store submission process.
3. Do at least one thing well. Unlike most desktop applications or web project, you have to remember that most good mobile apps fulfill a need that can come anywhere, any time. Your app idea doesn't have to be complicated, but good apps seem to do one or more of these things well:
- Solves a problem; - Is entertaining; - Serves a specific niche; - Engages the user; and/or - Takes advantage of the unique features of the iPhone.
4. Set goals and milestones. Whether your goal is speed to market, just to gain experience, or to build the best damn app that does (blank), clearly state your goals. Initially, it will help you focus on the areas that are important/critical for success. It will also help you later down the road as you face hard decisions about “must-have” features and “like-to-have” features. Remember, you can always issue feature updates so focus on the “must-have” items and do whatever is necessary to meet that goal.
5. Get a Dropbox account. For small- to medium-sized projects, you cannot beat Dropbox. It allows you to store, share and synchronize files with others. Stop sharing files back and forth on your USB memory stick. Get a Dropbox account and share files in real time. We abused the hell out of our free, shared Dropbox folder and it worked flawlessly. For larger projects, you might want to give GitHub a try.
6. Test. Test. Test. When you see the finish line, it's easy to gloss over the important step of testing your app. Test in your iPhone simulator, but also try to get your hands on an iPod touch and of course on an iPhone as well. Depending on the complexity of your app, you might want to create a test plan to make sure all the use cases and functional tasks are covered. The last thing you want is to have an app in the App Store that crashes or doesn't work as expected. You may never recover from all the ego-shattering feedback.
7. Understand the App Store submission process. Apple provides a PDF document detailing to submission process. But that document is only available for registered developers. If you've already registered, read that document thoroughly before you begin the upload process. It will give you a good idea of what's involved, but also what you'll need to prepare in advance. Apple also provides some good tips for app store submission and approval .
Lähde
Gizmodo