the Internet Windows Android

Applications for developing applications: how to make an application for iOS and Android yourself. We make an application for iOS yourself

So, you also came the thought: " And how should I learn to write programs for the iPhone?«, « How do I make my mobile app?«, « How to earn millions without doing anything?". I will try to step by step to answer these questions (except for the last).

What you need to know from the very beginning

To create programs for iOS. Officially, you need a computer Apple (imacor MacBook.). But if you speak at all honestly, you need an operating system OS X., so many at first chitryat and manage to use Khakintosh (Hackintosh.), that is, launch OS X on ordinary computers - This is an economical option, illegal and rather troublesome in terms of settings. I recommend you, since you firmly decided to become an iOS developer, buy a simple MacBook or Mac Mini., it is possible even used (any, released since 2010).

Next - what to write. Applications for iOS. writes in programming languages SWIFT or Objective-C., and all magical action happens in the program Xcode. (free). SWIFT "This is a very new language that Apple imagined literally recently (mid 2014) and now actively brings the idea that it is necessary to program only on it, behind him the future, it is more modern and fast. And they are right, learn SWIFT. Objective-C.opposite the language with a long time, so it is much more complicated to understand it that does not cancel its power and wealth of existing developments and books on it (which you cannot say at the moment about SWIFT). And nevertheless, I repeat, learn SWIFT.

If you want to make cross-platform applications (at the same time under iOS and Android) - learn C # and use the development environment Xamarin. (Paid). Want to make cross-platform games - Swing the development environment Unity3d. (Conditionally free), learn the above mentioned above C #.

And also to run your applications on the iPhone / iPad (even at the stage of development) and then lay them out in the AppStore, you need to buy status Apple Developer.for $ 100 per year. After buying this once again motivates at least to beat off this money 🙂

When I wondered this question, I thought it was just necessary to just take a good fat "Bible" on Objective-C (remind, SWIFT was not yet) and comprehend the secret knowledge of the programming language chapter for the head. All advised the book of Stephen Kochan " Programming on Objective-C«. WRONG!Do not repeat my mistake. Yes, the basics of the tongue were comprehended, the book is good, but this is a reference book and it is far from the real development of applications from scratch. To learn how to program you need to "blur hands", trying to write the first, let quite simple, but working Applications. You need lessons with examples. From simple to complex. It is still important to put a real target, the first application you want to write and release to the AppStore. Each lesson or book should give you the knowledge that you can apply in your project. Do not make a mistake of the "Eternal Student", which only that makes it studying, is studying, studying, but postponing the moment of the beginning of this work. For example, I put myself a goal to make an application-radio and release it in the AppStore for a month - and I did it.

If you know English, consider you a little lucky, now I will tell you where to draw all the knowledge. In Russian, unfortunately, the information is very little and often it is lagged (and translated from English).

The iOS Apprentice.

The best English-speaking training site - Raywenderlich.com.. It is mega-cool for three reasons: 1) You can read the sea for free of lessons from Azov before trying to repeat the existing successful applications (including SWIFT), while everything is written mentally and with humor; 2) there are video lessons (truth, paid); 3) The most important reason "They have books for beginners who will teach you from scratch on an example of creating applications, very intelligibly, with pictures (well, as we love). Books are paid (they are free only the first part), but they are worth it. I bought them all and they have paid off for a long time, as they build a good foundation bricks behind the brick. It is not to compare just with reading different lessons in the same site. Start with the purchase of The iOS-Apprentice book (the first part of which can be downloaded for free). She will teach you to create the first applications on SWIFT. They also have books on the development of games on Spritekit.(Apple framework for game development).

The second utility resource - APPCODA.. He is easier than Raywenderlich, but the essence is the same - read the lessons on SWIFT, learn from the examples. They also have their own books (paid), except free lessons.

And what if you do not know English - UPS, such Russian Internet resources are simply not. Books in Russian? Of course, you will find some books on Ozon, but all of them are outdated and will not teach you the SWIFT language (at the moment everything is just on Objective-C).

The best that I can offer you is a hub "IOS-Development" in Habré, there are constantly new articles, but very chaotically appear.

Where to find an answer, something does not work

During programming, you will constantly have any questions: you do not know how to do something or you do something, but in response, the program reports an error. You can find answers (or ask a question) on two sites:

Stackoverflow. - The largest storehouse of ready-made answers in English. 80% of answers I find there.

Google - Bentally, just to enter the search question, you can find an answer. If it does not work out immediately, go to the wording of the question.

Toaster - Analog StackOverFlow, but in Russian. It is still difficult to find answers here, since the base of the questions is not very big. But you can ask - there are enough professionals on the resource that you will be answered.

Well, or you can ask me. While free 🙂

Today IT-sphere is developing quite quickly. Everyone, if he wants to try himself in it, chooses one of the directions and moves to the goal. Many prefer applications for iOS and Android. Create them, of course, is quite difficult, patience, knowledge and free time are needed. If you are seriously tuned to this, you should learn and go to the goal. Alone?

Development environment

First you need to install the program where you will work with the interface and prescribe actions for the necessary items. The most common - xcode. Unfortunately, this development environment is available only to Apple products. At present official version No Windows or Linux. Under the different version of iOS required different version This program.

Additions to work with graphics

To develop an image or design for games, you must install the utility to work with graphics. A common application is CorelDRAW, which allows you to create photos using vector graphics. Of course, for full-fledged work you need to purchase full versionBut the standard ways can be used for free.

Objective-C.

The Objective-C programming language is used to create a functionality for the game. As you might notice, he went from the family of languages \u200b\u200bwith, so if you previously studied another programming language, you can spend enough time to in-depth study and start creating your applications. Of course, there are many books on the study of Objective-C.

Creating an account

To subsequently sell your application, you need to register with the AppStore. In it you can also provide other users open accessSo that they can test the program. Of course, it is not free. 100 dollars you need to put your application for sale for one year.

Also in you can watch test applications. Some have information about how they were developed. Check out similar examples with what you want to create and try to make a similar.

Application layout

First you need to decide on the target audience for your application. The interface and functionality will depend on it. Of course, if you are developing a program, it is worth achieving a solution that was not before. Only so you can achieve popularity.

It is also worth deciding how the application will be arranged. You must make the interface as simple as possible so that it attracts new people, and not scared without showing its capabilities.

Each button must display their actions and show what it will do. The user should not have any questions about what a keys will do. Consider, and then embody the high-quality interface.

Creating an application

First you need to open the considered development environment and create a new project. To do this, you need to go to the "File" section and go to the Application item. Next, select "iOS" and go to the empty application "Empty Application".

Create an iOS application using various templates that are created for different tasks. To begin with, it is better to use empty to deal with all the subtleties. Subsequently, you can apply them.

In a new window, enter the product name and your identifier, you should also specify the class prefix. If you are a beginner developer, then you should specify in the "COM.example" identifier field, and in the xyz prefix field. Next, choose from the proposed devices "Inefon" and confirm your actions.

Use Storyboard

In the beginning of the way to create an iOS application, you can use Storyboard. What it is? This is a function that allows you to visually submit all your screens in the program. It shows all windows and transitions that are used between them. This is a good assistant in creating a program. To open Storyboard you need:

    go to the "File" section and the NEW item;

    select the "File" button and go to "User Interface";

    after that, select the desired function;

    it remains only to select the iPhone device and call the file.

It should be remembered that it must be saved to the folder where the data is stored about your project.

Add screen

To add a screen, you need to apply the type controller. It allows you to determine how the user interface will look like. There are many built-in type controllers. You can watch each available option and decide which design you will like.

· For this, go to the Main.Storyboard file through navigation.

· Select "Object Library" to upload all the necessary objects.

· You need to click on the "View Controller" and pull it to your project. So you add your first screen.

Objects

For iOS? So, you have decided on the interface and added the screen, you can now go to the creation of certain objects. To use standard items, open the Objects Library list. If you found a suitable object, you can transfer it to your screen. It can be easily moved and scaled.

Editing elements

Placing objects, you use a kind of designer. Create an application for iOS can also be so, but these elements have an ugly, standard view. To change the design: color, font, add pictures and other parameters, you need to select an object and proceed to its properties. You can do this by clicking on the "Attributes Inspector" button (the label reminds the shield).

Navigation panel

Soon you add many other screens, and the program will need to enter navigation so that you can easily find the information you need. To add it, you need:

    Find a place where this element will be located. It is better to apply it to the initial screen to control other windows.

    Click on the "Editor" button and go to the "Embed In" item.

    It remains only to select the desired element - "Navigation Controller".

Additional features

As you might notice, we have not yet used the programming language to create an iOS application. This moment will be only on you. You must come up with what should execute your application and cut it under this actions in the Objective-C language. If you do not have a good programming skill, you should read additional literature.

Testing applications

Xcode has an emulator that allows you to test. After it must be tested, check the performance. To do this, go to the "SIMULATOR AND DEBUG" section. Select the device with which you want to test.

Assembling the program

How to create an application for iOS yourself? For a full or game you need to assemble the project. Go to the "Build" and click on it. So you compile the application, and after that it will immediately start. It will take you about five minutes. You will be able to observe how the assembly will occur.

Device for checking

To finally make sure your project works, you need to test on your device. If you have an iPhone, then you can do it without problems. Connect your device to PC. Further perform the actions that we have already considered. Click on the "Device and Debug" button, and then go to the "Build" point. After a few minutes when the application is gathered, it starts on your device.

If you figured out how to create an application for Android and iOS, but you have some problems, you need to eliminate them. You can look in the console, what errors occurred during testing. In general, it is a rather important process, since if you test your application well, it will bring success. You can also use the help of your friends. To do this, send them your application and wait until they find mistakes.

Project Publication

You need to create an assembly. To do this, select the "Distribution" item in the menu and click on the "Build" button. Next, choose your project and archive it. You must understand that the application must be optimized for the required platform and be suitable for the retine display, it will not be appropriate without this.

Go to the AppStore account and add new program or game. You will need to enter all the information about the application: name, description, keywords, category, copyright and contacts. Also fill in the field with price and rights. It remains only to add an icon to your application and several screenshots.

Check

After downloading your application, it will be checked. After a few days, you must answer. At the initial stage, the program is automatically checked. If everything went successfully, it is transferred to the "In Review" state. If this did not happen, after a few hours you can get an answer to the mail. You can also get information about how to eliminate defects and what is needed for this.

If the application has passed all checks, it will be scented in Apple Store for sale. Your task is now - advertising programs or games. It will depend on how much money you will earn. You can apply various services for advertising.

Conclusion

Application development is made according to a similar principle, but in another development environment for Windows. How to create an iOS application? This is a rather long and complex process. To this it is necessary to approach, having certain knowledge and skills. Only so you can achieve something. You can realize your ideas without certain skills. Choose needed company And consider how much it is worth creating an application for iOS. You can also order some components if you can not do something yourself.

If you are a permanent user of iOS, then you probably came to mind the idea of \u200b\u200bcreating your own mobile application for iOS. Moreover, now, with the development of technologies, it is not even necessary to learn programming languages \u200b\u200bto develop an iOS application, it suffices to use simple designers.

Figure shop App Store. The prominent is filled with entertainment content - and the lion's share of accessible content is assigned to mobile iOS applications (followed - music, books, and movies): Through the search, it is easy to find games, browsers, customers of social networks, services that make it possible to order a taxi and food, messengers, animated wallpapers and postal instruments. Press a lot of available mobile applications It is almost impossible, and at once several reasons.

First, the mobile iOS content market changes all the time - every time there are new developers who have decided to create a new product yet, "beginners" appear, trying to rewrite the content of "professionals" with new words, under the influence of modern trends. And secondly, a library of one APP STORE consists of a million available offers. And this is not the limit, taking into account the development of technologies and a sharply reduced level of entry into mobile development.

Yes, programming languages \u200b\u200bare still worth studying (if you wanted to block templates and change the world), but with recent pores it is possible to develop an application without knowledge - the main thing is to armared the right tool and use the appropriate service, designer.

Why may you need your application

The development of an application under the modern mobile operating system IOS is worth considering from several sides:

  • Business tool. It is difficult to submit modern delivery service, a large restaurant or a taxi, working exclusively through mobile calls and home phone. Who wants to hang on the line, instead virtual card This and the matter is called the desired addresses, intimidated, then in trains, then in travel, and I get to choose, asking for suitable positions from the Call Center operator. "Mobility" of applications in this case solves everything! Yes, and it is unlikely that there will be a way to interact more effectively with the crowd, attracting an audience, then new discounts and suggestions.
    However, not always mobile applications should be considered exclusively as a promotion tool - sometimes loaded through the App Store Assistants trite simplify interaction with some resources. For example, you do not have to use the browser all the time to read the recent postage. Why pass so much long wayIf you can download the mobile application, logged in the system, and then configure the notification system. Nothing anything no longer miss, and the remaining time after checking the mail is also enough for a cup of coffee;
  • Entertainment. The second side of the content, due to which novice developers dream of getting into the App Store - an attempt to combine entertainment content. And options here mass - games, parodies on social networksServices for virtual communication, new items that have fallen in Trends. Content from this section is signed exclusively for the sake of envelope, and in no way connected with the already working business.

Accordingly, the options, why may be needed by a mobile application two - either, accumulated interesting ideaswho wanted to express with the help of the developer's environment, or business has long moved to the mountain and customers who use the company's services, wanted to award something really useful and convenient (for example, a mobile catalog with goods that allows you to quickly form an order, choose a delivery method and Lightning to make payment).

How to do a novice if you do not want to teach programming languages?

A few years ago, the path from the novice to the professional developer of mobile applications ran through a bunch of all kinds of tests. First, to create something, I had to study the programming language (if you need to develop for Android, then Java is suitable if the SWIFT constructor has become popular), and now it has been not from an empty place, and immediately After the course of mathematics, logic and study markup.

Secondly, each IOS application developer is obliged to own Apple's appliances for full-fledged work with suitable tools (like Xcode) and to directly use the App Store store as a platform for distributing the designed content.

If you carefully look at the IOS operating system, then it is impossible not to note the fact of the extraordinary closedness of the OS, which are poured into all sorts of restrictions at the stage of creating and developing a new mobile iOS application.

Strongly affects the impossibility of downloading certain version of iOS. on a PC to test versions and check compatibility. But each developer is obliged to check how novelty copes with 11 iOS and from 5, if such else has remained. Even difficulties are found at the stage of adding content in the App Store, where the suspended moderation is to reject the created new product may even because of the wrong screenshots.

Recently, the times have changed a lot - to develop mobile applications for Apple products will suit any computer at least with Windows, at least with Linux. Learn languages \u200b\u200b- also do not have to do, because the network has found a special "designers", which are offered for several steps to create at least a store where the goods affordable in stock, even develop a platform for calling a taxi with a virtual card.

But it is not even surprising that programming languages \u200b\u200bno longer have to learn, but how the development of iOS application is built - everything is intuitively available and visual. The selection performed at each stage is visible on the screen in real time.

What are the services to create applications, what are the advantages and opportunities

Application designers are modern fast-growing services that allow newcomers even without knowledge of programming languages \u200b\u200band without access to special equipment, create an interesting and brought to excellence in terms of modern technologies, platform (game, tool, utility), simplifying some actions or opening some additional features (Search for the best eaters in the district through the use of geoposition).

What are the advantages of designers?

  • Minimum financial investments. No "paid" developers, long planning and vague development time. In just a few days you can develop and bring the idea to essence and carry out a release in a suitable digital store;
  • Quick response check. If for some reason customers do not pay attention to the novelty in the App Store, even with a sufficient number of advertising and reluctantly agree to the download, then most likely to endure the business to mobile platforms And it is necessary to focus on other ideas;
  • Low threshold entry. Everyone available in the network constructor is thought out to the smallest detail - offers an intuitive interface, special instructions for beginners and a set of error prevention tips;
  • Easy to pick a pattern. If the idea is typical (the development of the platform for the sale of goods, food delivery, search for free cars), then beginners do not even have to invent anything from a technical point of view - everyone has long made professionals. The main thing is to correctly fill out the grid of goods in the constructor, but rewrite the name of the menu available and partition;
  • You can not worry about the result. If a suitable template is chosen, the money is practically not embedded, and the time spent hardly dropped for a few days, then what to worry about? The result resulting in a consequence of the launch of the application can be viewed as another attempt to evaluate the invented idea or established, but demanding a restaway business;
  • Total support. Well, and where without knowledgeable people, which in voice, and in the text chat will be prompted where to click and where to see.

Unfortunately, designers are not without minuses. And templates are very limited in the possibilities, and the excess functional cannot be attached to the first wishes, and for the disconnection of advertising will have to pay, and the binding to the constructor is not always removed. In addition, it is not always possible to carry out multi-step testing before direct starting.

Best Constructors Services

The list of suitable designers is expanding every year - to determine the "best" in this case is very problematic, but to highlight the three designers, who exactly should be attended, you can still:

Goodbarber

Designer for those who have long been owned by a small business and decided to expand the possibilities. The designer is designed and on short beginners in development (special instructions are available, templates are open, you can talk in chats with connoisseurs and get a useful consultation), and on real professionals - anyone can open the program code, climb into the Debresses of the application created by iOS and Programming languages \u200b\u200bachieve an ideal result.

And also - the GOODBARBER designer allows you to use all aspects of smartphones and tablets - notifications, integration into various mobile services (from calendars to cards) fast access. By the way, when the desire to lay out the project in the App Store does not have to do such things in person, the main thing is to contact, pay the specified amount (for the ability to be in the App Store store you need to pay monthly), and then wait for the result!

Buildfire.

Similar to functionality with a goodbarber Designer, which allows only ten minutes from the registration stage in the constructor until the main functionality of the application will already be formed. Positive evaluation requires almost all available features - and templates, and built-in graphics editor, and a special graphical interface that allows you to create buttons, menus and sections with one click and in the first place.

The first prototype obtained during the development can be immediately downloaded to a special test environment and check how the development will potentially look at iOS smartphone or tablet.

Appy Pie

Cross-platform designer (you can develop under any mobile oS - at least under iOS, even under Windows Phone), whose main chip is the ability to create a mobile application right in the browser! You need to choose design and suitable colors, put links, decorate the free space of pictures and links and can be sent to the release. Before the publication will be held no more than 30 minutes!

The designer is configured, by the way, literally immediately - even the authorization menu can be override in the first wishes. Of the minuses - everything is in English (however, as well as competitors), the need to pay for the opportunity to remove advertising.

What to do next with your application?

If there is a desire to create applications and experiment not for the sake of the result, but for your own pleasure, you can at least operate the designers listed above and make our own ideas in the form of mobile applications. For such a do not have to pay, but the result will remain on "paper".

If it is important to convey everything to the audience, the simplest option is to seek help from digital shops. For example, to the App Store. There will be a place wishing. The only minus is to learn from registrations, the need to receive certificates and duty to pay for the release. In the latter case, it will be possible to test the mobile application and earn as an audience and real money.

The IOS-developer should know, trying to know anyone who plans to start a career in this activity. Other are convinced that such an option is too complicated - still programming is not given to everyone. But there are those who know: under the lying stone water does not flow, and you can move the mountains to the right place. Specialized office are currently engaged in training under iOS. Mostly it is quite expensive private schools. Those who want to save money developing courses for iOS online: there are quite a few resources in free access on the Internet. However, a good result will be obtained only when the maximum effort is applied.

Money: how to get?

The demand for IOS development tutorials has become especially high since 2014. It was then that the author from Vietnam released a quickly conquered world popularity toy for this platform - a simple manner, but difficult for passing. The project received the name Flappy Bird and brought several hundred thousand US dollars to its creator in just a couple of months. Then many people who can see the future technologies and predict what will be the demand after some time, realized that it was time to master the development from scratch for iOS. Indeed, at present, the demand for specialists in this area is great, but only those who can write quality code are obtained.

The development of applications for iPhone many causes a real sea of \u200b\u200bquestions. Absolutely, where to start, how to apply the existing knowledge where to study to get a good level of skills. How to start developing iOS applications? Many modern books are responsible for this question, but large volumes and complex file feeds make them hard to reach for non-professionals.

Basic skills

Usually, IOS development lessons begin directly with the writing of the code, as well as explanations of the receptions that can be useful to beginner specialist. But after all, not always for mastering the one who is already familiar with the appropriate programming language is taken, therefore it is correct to say that the optimal primary stage is a study of a suitable tool. Most often, iOS developers apply Objective-C. Language belongs to the object-oriented group. From the experience of many iOS developers It can be seen that it is that it is more convenient when creating applications for smartphones. However, not only for "apple" technology - can be used when working under Android.

If the creation of mobile applications decided to do a person who had previously mastered some language from the group of object-oriented, then work with a new tool will not cause problems. All OOP is quite close to each other, subordinate to similar logic. How to become iOS developer if the code creation skills are? You need to take a book explaining the main features of Objective-C, and practice the programming elements. It takes a little time, but gives an excellent result. The novice specialist will win the syntax, will understand what is hidden in the language of the ability, how can I organize the code with maximum efficiency. It is worth remembering that if the code is high-quality, the IOS developer is highly appreciated. The salary will be decent - hundreds of thousand rubles. And here are those who write a complex, incomprehensible, confused code, get much less.

Go from scratch

However, the development of iOS applications is available not only to those who already have experience in creating code. It can be safely taken for mastering the area, not having specific knowledge and education - this is a matter of hiring. Of course, Objective-C is not the easiest language, including from the category of the OOP, therefore it will be easier to cope with it if you first delve into the logic of the entire group of software tools, after which it has special attention to the specifics of a particular option. According to experts, the development of applications for iOS must be made with the three main features characteristic of the tool for creating code: this is a polymorphism, inheritance, encapsulation. These are the whales of the world programming for "apple" smartphones.

In 2014, an interesting was released software development - SWIFT language. He was presented to Apple themselves, presenting as a means for creating applications for their equipment. The main task of this product is to make the process of developing a code simple, fast. SWIFT is focused on the features of smartphones, so when it is applied, the development of iOS applications is much easier than when you try to adjust the products on this purpose, originally conceived as a way of writing code for stationary machines running other OS. SWIFT has acquired a certain popularity - it is not only written code for smartphone applications, tablets, but also programs for systems like UNIX.

Do not spray!

The development of SWIFT tools is reasonable in the case when the programmer is already familiar with the languages \u200b\u200bof object-oriented programming. It is necessary to pay the time to develop the development of the "apple" and in the event that a person is able to write code on Objective-C. But if you still have to learn this an indispensable tool To create mobile applications, then you do not need to be distracted from the main task. SWIFT, of course, is important and needed, but it will be possible to do it and later - when you manage to "win" Objective-C. And at first and one of this new tool is enough to upload the brain by full program. As experts say, this is definitely not the easiest of programming languages, but quite flexible and provides many possibilities for creating an effective code.

Toolkit: Useful for a programmer

The development of iOS applications involves interacting with several tools that allow you to make an application with an optimized, efficient, efficient and aesthetic. Traditionally, the most important and mentioned first is a development environment. When creating products for "apple" mobile devices, it is best to contact Xcode. It is completely free, and you can download through the official application store. Spread free, access is all those who want.

The following tool for developing applications for iOS is a editor that allows you to adjust the created code. Preference is better to give lungs simple programs. Traditionally, those where there is a backlight function. Just a few seconds - and now written code is running. To detect erroneous lines and corrections, it is necessary to some time, this does not upload the resources of the machine on which the programmer works.

Graphics worthy of attention

Surprisingly, many novice programmers do not pay time for this component of the creation of the program at all. To develop applications for iOS has become a process that completes the output of a workable, attractive application, you need to master the tools that allow you to adjust appearance programs. The technology of vector graphics is best suited. It will make it possible to create unique images, icons that give the product originality, individuality. Despite the fact that other people say, as if decoracing is too difficult, it is impossible to succeed if the product visually will not attract the user. Moreover, today, when competition in the store apple applications Just huge and there are options for every taste and for any purpose. It will be possible to draw them to attract attention to its development in the case when the novelty does not only function well, but also looks beautiful.

Correct Start: Clear Plan

Without creating a detailed plan, you should not count on any successful result. Structuring is not the easiest task, but it definitely deserves attention. Before starting directly coding, you need to highlight a few hours and sit down with a sketchbook to make an optimal plan. As part of the planning, it is important to form an idea of \u200b\u200bthe design solution of the product, to formulate for whom it is intended and what functionality is boring.

Design thinking begins with the wording of the concept. You also need to choose which functions to implement in the program, give them a brief, but capacious description, and also specify all possible schemes interaction of elements, including transitions. It will not be superfluous to draw sketches of important elements. Determining with the functionality, you need to highlight one task, on the solution of which a new product is sent, and formulate the features of the application, focusing on this purpose. As for the audience, it is important to understand that age, the scope of interest, lifestyle and gender affiliation strongly affect both tastes and goals with which users download applications. Choosing my own target audience That's right, you can successfully choose the design solution and additional functionality.

Project: first went

The very first project should not be difficult. You can try to create an academic application that has only one screen. To do this, open Xcode, create a new project, set the platform to apply the correct optimization tools, after which the type of software product is chosen. To simplify the development of the environment, you can start with Single View Application. For the project set a unique name. In standard mode, the programming environment believes that writing will be conducted on Objective-C. If the programmer wants to apply another tool, it needs to be referred to as the transfer of possible languages. Among the menu items there is a responsible for the language, there should be the most convenient option from available. After that, switch to the universal mode in the Devices tab.

The navigation panel deploy a hierarchical structure to search for a Main.StoryBoard document. When it is selected, you can see the Interface Builder key - it is activated, from the panel shown select the necessary tools, move them to a convenient position, align, are adjusted. To reflect elements in the code, each object is chosen with the mouse with with the Ctrl keyMove into ViewController.H, which initiates the launch of the Outlet dialog box, where you can specify the properties of the formed communication. Here the programmer indicates the name by which the item can be called in the program code.

To create an effective action handler, you have to repeat the above chain of actions, but applying the ViewController.m dialog box. Inside it is formed by a method with a coded program. The machine will access it whenever you need to interact with the component.

We believe the result: Testing

In large companies, several employees are engaged in this task. A rather complicated methodology is applied. First, cases are formed, where it is indicated which actions need to be tested which results the program should issue, as well as real experiments with fixing results. For a novice developer of mobile applications under the OS from Apple, everything is somewhat simpler (but also harder at the same time). Here testing completely falls on the author of the code, but also the tasks themselves to be verified, usually a bit, so you can conduct an operation in manual mode. This will require an emulator through which program components run. In the course of interaction, you can find which solutions were unsuccessful which errors were allowed, to note this for themselves and correct when finalizing the code.

With independent testing, it is important to submit yourself to third-party user, in no way associated with the code. Moreover, you need to imagine yourself with critics interested only in errors, a person who is not important to the positive qual qualities of the program, but only negative. You need to try to break the program all possible methods. Must be introduced? Enter the letter to this field. You need to press the key quickly - click Long. In short, testing is the time when you need to make all the established rules and recommendations.

I do not want and I will not!

Not every programmer is ready to take on its own program, applying such barbaric interaction methods. Another and at all seems to be a boring task that is not worth the time. To get rid of excess work, save hours and eliminate unpleasant situations, you can attract freelancers to the project. There are specialized sites where you can find ready-made for a small remuneration to look for all sorts and all kinds of bugs in the novelty.

As Professionals say, to entrust the search for errors to face a person - this is a good option, much more efficient than an independent solution to the problem. The freelancer does not have a program that the program should do, and what - no, so his consciousness is "not stupid" by surplus information. Such a person is easier to test the applications, it means that it will be possible to find more problems and eliminate them until the official release.

More audience!

If experiments on freelancers showed that the application is ready for free swimming, it's time to publish it. To do this, the product is loaded into the AppStore. The XCode software environment when you press the keys responsible for this will be the assembly of the type that the programmer will install in advance. You must select the Distribution option. The compiler will create a file and record it in the directory assigned to the project. Then manually programmer packs the document to the ZIP archive.

The next step is to use the iOS developer center interface, where you need to find the iTunes Connect menu. Through the control and addition functions, you can go to the new product questionnaire page. All fields mentioned here will have to fill on their own. You can prepare information in advance - for example, while the project is tested. It is necessary to write a unique description, specify contact details, make a small icon (resolution 512 * 512), screenshots.

What to do next?

To publish the application, you must use a special software product designed to download new objects - uploader Tool. You can download it by reference that the system will open when the user goes in the boot availability menu. In automatic order, there is a connection with iTunes, after which the shell itself will determine what projects the user has. It remains only to choose the desired one, and it will be loaded by the program, without special effort.

After downloading, the new product is sent to check, which usually takes several days or even weeks. With a negative result, the developer receives a notification to email With the reasons for failure. If you manage to eliminate all the shortcomings, you can re-send a novelty to moderation.

News is important

The XCode developer often releases updates for this environment. It is necessary to apply the itself new version. This not only makes it possible to work with a program where the number of errors is minimized, but also allows you to regularly recognize about all updated features. Using the most new and powerful interface, the programmer simplifies the task set before him. Also, Apple regularly release iPhone updates SDK. The most relevant toolkit is the key to a good result.

A fly in the ointment

If the application successfully passed the check, it enters the zone general access. Probably, at the very beginning on the developer, many negative reviews will collapse. Not all of them are constructive. You must be able to analyze information from users to improve your product, but the extra and meaningless negative should be noted without letting it hurt yourself and undermine the faith in your strength. If the person gross behaves, and there is no benefit from his criticism, you can simply not pay attention to the messages left.

Well, it's time to write to us your first program for our iPhone. If you have not yet set yourself xcode + iPhone SDK - then you. And so, the Xcode cost us and set up, let's start?

To begin with, learn how simpler. Create a program in which there will be one text field into which we will write to our name and one button, by pressing which our name will be recorded in a greeting. Our first program will look like this:

Create our first and hope not the last project:

Next we will ask what type of application to create. On the left in the panel choose iPhone OS -\u003e Application And in the central window, choose the type of project View-Based Application. Let's call our first program, let's say FirStapp

As a result, we create a project with an already created controller (the first window of our program)

The main window of the project looks like this:

Xcode created for us the first controller, these are two files called FirstappViewController.h and FirstappViewController.m

FIRSTAppViewController.h file acts as a header (from there and extension of the file.h from the word Header) in it we will announce the variables and methods that we will use in the main FIRStappViewController.m file

And so, open the FIRStappViewController.h file and create two pointers:

Iboutlet uilabel * username;

The first USERNAME variable is a text label in which we will record our name. Nikfield is a text field where we will read our name.

Write it is needed in the block @Interface FirstappViewController: uiViewController ()

We will also create a method that will call when you click on the button to introduce yourself. Let's call the SETNIK method:

- (IBACTION) SETNIK;

As a result, our FirStappViewController.h file should look like this:

#Import. @Interface FirStappViewController: UIViewController ( Iboutlet uilabel * username; IBOUTLET UITEXTFIELD * NIKFIELD; ) - (ibaction) setnik; @end.

Now, let's go to the file FIRStappViewController.m

Add our SETNIK method here. Need to write after a line @Implementation FirstappViewController.

- (IBACTION) SETNIK ( username.text \u003d nikfield.text; }

Here we prescribe that when performing this method, text from the Nikfield field will be recorded in the UserName textbook.

We also need to free up memory from these pointers after we use them. This is done in the method called dealoc.

- (void) dealloc (;;;)

Just add all the pointers that used, here in this format:;

Now, open the FIRStappViewController.xib interface file, it starts in the Interface Builder interface editor.


From the library of the components, drag the components you need into the window of our program and arrange as convenient. Further in a small window, select File's Owner and press Command + 2 that transfers us to the Connections Inspector menu. We see the list of our pointers, which we have already been prescribed, and on the right of them empty mirrox. Clay on an empty circle near the Nikfield pointer and not releasing the drain to the text field. When we sum up a mouse pointer to the network, it will be burned with a rectangle and let go. Thus, we tied this field to the Nikfield pointer. Now we will do the same with the username pointer and pulls it onto the text where we want to see our nickname (in my picture it is the text% username%). Even below, we see our SETNIK method and associate it with our button. But when you bring to the button and release, it will fall context menu From which you select Touch Up Inside. This means that this method will work when we click and release the button. What we need is :)

Well, we save, go back to Xcode and click Build & Run. Uraaa, our first program started :) Click the text box, the keyboard appears, write the name. But our program still lacks one small stroke. It is to retire the keyboard by pressing the Done button when we finished entering our name.

To do this, you will turn on the interface constructor again, click on our button. Click Command + 1 and find there Text Input Traits. It has several drop-down lists, but we are only interested in the lowest: Return Key. Select from the Done list and at the bottom of the block put a tick near the AUTO-Enable Return Key. Continue in Command + 2 Connections Inspector and see the word there. dELEGATE.. Click on the circles near it and pull to the File's Owner block

Now we return to our FIRStappViewController.m file after our SETNIK method add more such code:

- (BOOL) TextFieldShouldReturn: (UITEXTFIELD *) ThetextField ( ; RETURN YES; )

We save and try to run (you can use Command + R combination) We try to write our name in the text box. When writing, the Done button appears by clicking on which keyboard closes. Now we click on our button and vua, the program with us is greeting :)

It would seem what little things, think they wrote such a little one. And I, when Many years ago, taught Delphi, having learned one such an example so that by clicking on the button something it was written on the screen did different toys. Remember one of the most first browser games Fight Club? So I did myself for myself. Something similar and everything was based on this principle as we just did with you. So play, experiment!

Here you still have a link to the project archive, you can download, include see if someone did not work. Well, if you have questions, then write in the comments.