THEME IS CLOSED
> Short Development FAQ | basic information
Picnik
Message#1
04.06.15, 13:28
Will live!
*********
[offline]

Group: Honorary Gameday
Messages 6838
Check in: 30.01.08
Samsung Galaxy S7 EDGE SM-G935F

Reputation:-  1245  +

������� FAQ �� ���������� download



Attached Image


Subject:


I want to add information to the FAQ
Properly compose a question and answer to it, then send it to one of the section moderators or contact via the “Complaint” button.


Post has been editedKUKUndrik - 10.07.15, 20:03
mfilonen2
Message#2
19.01.15, 18:19
*********
[offline]

Group: Honorary Gameday
Messages 3033
Check in: 04.05.13
Xiaomi Redmi Note 4X MTK 4/64

Reputation:-  397  +

What version of Xcode is needed for development for iOS 8?

Need xcode 6 or later. The possibilities of integration with Apple Watch in version 6.2, which is currently in beta testing, have significantly expanded.
mfilonen2
Message#3
19.01.15, 18:38
*********
[offline]

Group: Honorary Gameday
Messages 3033
Check in: 04.05.13
Xiaomi Redmi Note 4X MTK 4/64

Reputation:-  397  +

What is Swift?

Swift is Apple's new object-oriented language, a replacement for Objective-C and used (starting with iOS 8) to write applications for Apple's mobile operating systems.
Innovations and features of the language are as follows:
  • New types of variables and arrays (tuples).
  • Significant simplification of the syntax: a decrease in the volume of long names, it is not necessary to put; after each line, multiline comments are allowed next to the code to improve the comprehensibility of the program.
  • Similarity to scripting languages: reducing the amount of code, making it easier for web developers to program in Swift.
  • Sandboxes (PlayGrounds), where you can create variants of a particular code and observe the result of the change, without changing the source code or compiling the program again.
  • Reducing the number of associated files, and, ka result, the amount of memory occupied by the application.
mfilonen2
Message#4
19.01.15, 19:03
*********
[offline]

Group: Honorary Gameday
Messages 3033
Check in: 04.05.13
Xiaomi Redmi Note 4X MTK 4/64

Reputation:-  397  +

A bit about WatchKit

The main feature of the watch is that the already compiled code that is stored on the iPhone is transferred to them. THAT is, in fact, without the Apple Watch iPhone can not work. The code and data are transmitted via Bluetouth, while only interface files and some other data are stored on the clock.
There are 3 types of applications for Apple Watch:
  • Glance. The simplest application that does not provide user interaction from the interface will be used to display static information.
  • Notification. Notifications are of two types - simple (which do not have buttons) and more advanced, with buttons and other interface elements, for example, to go to the appropriate application.
  • Watch App. Full application for Watch, where all interface elements are used.

Elements that can be used in the clock interface:
  • Button
  • Label slider
  • Image
  • Separator
  • Switch
  • Date
  • Map
  • Menu
  • Table

At the same time, since the code is executed on iOS, developers, with the exception of demanding tasks, all types of methods and functions from iOS 8 are available.
There are 2 main application files:
  • InterfaceController.m is an application interface controller that runs on an iPhone.
  • Interface.storyboard - application interface file stored on Apple Watch.

Accordingly, WatchKit itself links these 2 files into a single application.
mfilonen2
Message#5
19.01.15, 20:50
*********
[offline]

Group: Honorary Gameday
Messages 3033
Check in: 04.05.13
Xiaomi Redmi Note 4X MTK 4/64

Reputation:-  397  +

Application Empowerment

In iOS 8, developers have received a new APi to expand the capabilities of their applications. Now they can use the Touch ID fingerprint scanner, previously used only to unlock and enter the iTunes Store. Also now, developers can integrate their items in the "Actions" and "Share" menus (which is relevant for both social networks and various extensions (translators, programs for storing passwords, etc.).
The user can swap items in this menu.
Also, applications can now exchange data, and the integration of third-party applications into the system has become deeper than before. At the same time, each program, as well as in other mobile OS, is located in its sandbox, which ensures the security of the system.
mfilonen2
Message#6
19.01.15, 21:28
*********
[offline]

Group: Honorary Gameday
Messages 3033
Check in: 04.05.13
Xiaomi Redmi Note 4X MTK 4/64

Reputation:-  397  +

mfilonen2
Message#7
15.02.15, 11:16
*********
[offline]

Group: Honorary Gameday
Messages 3033
Check in: 04.05.13
Xiaomi Redmi Note 4X MTK 4/64

Reputation:-  397  +

How to get a developer account?

The developer account will allow you to publish your applications in the App Store and Mac App Store, access Beta versions of OS X and iOS, test your applications in a special service and much more.
  1. To register, follow the linkhttps: //developer.appl…/register/index.actionand choose whether you will log in with your Apple ID or create a new one. On the next page we enter or register.
  2. Next, agree with the license agreement and move on.
    Attached Image

  3. Next, fill out the proposed form:
    Attached Image

  4. Now click on Register and the account will be created!
  5. The next step is to pay for account creation. To do this, select the developer program (iOS Developer Program, Safari Developer ProgramorMac developer program). The first and third are 99.99 dollars a year, the second is free.
  6. We choose whether you are a natural person or a legal entity.
    Attached Image

  7. Further specify your data: surname, name, telephone number, place of residence (in accordance with the data on the credit card).
  8. Once again we choose which program you want to participate in.
  9. On the final screen, you must confirm the payment, and the account will be activated.
mfilonen2
Message#8
15.02.15, 14:38
*********
[offline]

Group: Honorary Gameday
Messages 3033
Check in: 04.05.13
Xiaomi Redmi Note 4X MTK 4/64

Reputation:-  397  +

Pro Xcode

Xcode is a software development environment for devices running OS X and iOS. The first version of XCode was released in 2001.
Xcode supports these languages:
  • C
  • C ++
  • Objective-c
  • Objective-C ++
  • Java
  • Pyhon
  • Swift
  • Ruby

The current version is Xcode 6.1.1.
Standard tools include the creation of such programs:
iOS:
  • Master-Detail Application
  • Page-Based Application
  • Single new application
  • Game
  • CocoaTouch Framework
  • Cocoa Touch Static Library
  • In-app purchase
  • Empty

OS X:
  • Cocoa application
  • Game
  • Command line tool
  • Cocoa framework
  • Library
  • Bundle
  • XPC Service
  • Address Book Action Plug-In
  • Automator action
  • Generic C ++ Plug-In
  • Generic Kernel Extension
  • Image Unit Plug-In
  • Installer Plug-In
  • Iokit driver
  • Preferences Pane
  • Quartz Composer
  • Quick-look plug-in
  • Screen saver
  • Spotlight importer
  • In-app purchase
  • Cocoa appleScript
  • Empty
  • External build system

Wikipedia article.
mfilonen2
Message#9
04.06.15, 14:33
*********
[offline]

Group: Honorary Gameday
Messages 3033
Check in: 04.05.13
Xiaomi Redmi Note 4X MTK 4/64

Reputation:-  397  +

Selling applications through the App Store

  1. Follow this linkhttps://itunesconnect.apple.comand log in as a developer.
  2. SelectManage Your Apps ->Add new app.
  3. In the windowSelect app typeselect iOS App. If you are only a member of the iOS Developer Program, then you will be taken to the App Information window automatically.
  4. In the windowApp InformationEnter Bundle ID, default language, application name, SKU identifier.
  5. In the next window, select the paid or free will be the application.
  6. Next, select the application version number, developer name and placement category.
  7. In the windowRatingselect the minimum allowable age, select parameters from the list that limit the sale of the application to minors (violence, obscene language, drug or alcohol propaganda, profanity, etc.).
  8. In the windowMetadatafill in the description (no more than 4000 characters), keywords, link to the main application site and support site.
  9. In sectionContact Informationenter your name, surname, Email and phone number.
  10. In sectionUploadsDownload the application icon, screenshots for all types of supported devices.
  11. Click Save. Next, openApplication loaderand chooseDeliver Your App.
  12. In the window that opens, open Choose and load the .ipa application file.
  13. After downloading the application, click Send and confirm the action. The application will go to check where it can be up to 2 weeks.


Post has been editedmfilonen2 - 04.06.15, 14:34
KUKUndrik
Message#10
04.06.15, 16:26
*********
[offline]

Group: Moderators
Messages 3795
Check in: 04.09.13
Apple iPhone 7

Reputation:-  612  +

IOS Terminology and Tips.

Xcode - this is an integrated development environment fromApple (IDE) .
iOS SDK - iOS development kit released in March 2009 by Apple. iOS SDK Available for Mac OS X only .
Mac OS (Macintosh Operating System) - Apple’s proprietary operating system family.
Objective-c - a compiled object-oriented programming language used by Apple.
Ad hoc - a way to distribute applications without the AppStore, by directly installing the application build file through iTunes.

We now turn directly to the tips and instructions.

So,first instructionand included in it - advice:

Registration in the iOS Developer Program.

You have two options:


The difference between them is as follows: when you participate in an Enterprise program, you cannot, unlike a regular program, upload your applications in the AppStore, but you can develop in-house applications — applications for internal use in your company without open access. If you decide to develop an in-house application for your customers, then they are encouraged to join this program. The iOS Developer Enterprise Program Support Center explains this question (the last question on the list)

Otherwise, the programs provide the same features:
  • access to development tools and SDK (including beta versions);
  • access to the Apple Developers Forums;
  • access to learning resources (example programs, articles, videos);
  • the ability to use Ad Hoc to distribute applications;
  • the ability to test your applications on iPad, iPhone, iPod-touch;
  • opportunity to receive technical support.


Is Mac Required When Developing?

Youwill definitely need Mac OS X , because on any other platform you will not be able to work with the iOS SDK. There are many different options for developing iOS applications, but you will need Mac OS X to build and load the application in the AppStore.

Ways to get Mac OS X:
  • buy a mac (obviously)
  • hackintosh.com
  • virtual machine


Mac mini Now it is quite an accessible thing, although, of course, you always want more, and there prices at Apple are already beginning to bite.
Regarding the other two options: I heard feedback from people who are quite happy with the hackintosh or with Mac OS X on VMWare, but I also have enough accumulated negative experience. It all depends on the iron, straightforward hands and your desire.
In general, if you want to develop for iPhone, the operating system should not be an obstacle.

Tools you can use for development.

Here I will touch on only a few tools - after Apple removes the ban on non-native development tools, almost every day new IDEs and frameworks appear.

Native development tools:

It is primarily a language.Objective-c and development environment Xcode (for company with Interface builder , iPhone simulator and other applications from the developer’s package). You can also write to C and C ++ , but without Objective-c you in some moments will still not do.

Xamarin iOS - allows you to develop applications for iDevice on C #. A noticeable minus for .NET developers is the price - $ 399 for an individual license.

Post has been editedKUKUndrik - 27.06.15, 22:30
KUKUndrik
Message#11
04.06.15, 19:02
*********
[offline]

Group: Moderators
Messages 3795
Check in: 04.09.13
Apple iPhone 7

Reputation:-  612  +

About Objective-C

Objective-C has built a very large class hierarchy. If you go down from the most specific (from the same UIButton button), down to the more general, then at the very bottom we will meet with the base class, which is called NSObject.
Any class is inherited from it.

So, let's begin.

  1. To create a class, right-click on the group into which you want to place it and select New File:
    Screen
    Attached Image

  2. Choosing the Cocoa Touch - Objective-C class:
    Screen
    Attached Image

  3. Enter the name, I chose "MyClass", in the Subclass of line (which class heir) select NSObject - we will inherit from the base class itself.
    Screen
    Attached Image

  4. Select a folder to save the file and it appears with us:
    Screen
    Attached Image


Now for the .h and .m files.

The file myclass.h is called the header file (header, heder) - it contains information about the class, namely its list of properties and methods available to other classes.
Here it contains the following lines:

#import<Foundation / Foundation.h>

@interface MyClass: NSObject

@end


This is the base class declaration. The first line means that we import Foundation classes — in fact, all of the main Objective-C classes are strings, numbers, etc. contained there.

Next, we declare the interface — that is, the list of available methods and properties of our class — with the @interface keyword and write the name of the class MyClass, and after the colon, the name of the class from which we inherit.

@end as it is not difficult to guess, completes the description of the interface.
Let's do something simple. For example, let our class have a "description" property, in which we will store its text description + it will have the "say hello" method, which will display the message "Hello, World!" To the console.

Add a description of the method and properties to the interface:

#import<Foundation / Foundation.h>

@interface MyClass: NSObject

- (void) sayHi;
@property (nonatomic, retain) NSString * myText;

@end


We first declared the sayHi method, which will print the messageHello, world .

Let me remind you that since it does not accept any parameters, there are no colons in it. And, since it does not return any data, we write- (void) before the start of the method.

Next comes the property declaration.
For now, we will not analyze it in detail - suffice it to say that we have an object of the class string (NSString) to which the pointer namedmyText .


Let's take a look at MyClass.m:

#import "MyClass.h"

@implementation MyClass

@end


The first line indicates the class description in the header.
And then we write@implementation , to show that there will be a code of methods.

Change it to look like this:
#import "MyClass.h"
@implementation MyClass
[B] @synthesize myText [/ B];
- (void) sayHi
{
NSLog (@ "Hello, world!");
}
@end


About@synthesize we are not going to talk yet, except to briefly say - instead of us, it generates code that will allow other objects to “read” the contents of the string myText and install it.

Then we write the sayHi method, very simple and straightforward :) It simply prints text to the console with the NSLog command.

Let's now add a button to our form and assign the askForHi method to it.
How to add a new method to ViewController, you should know from the old lessons - so add it so that it looks like this (from -
(IBAction) askHi: (id) sender
{

}


And do not forget to tie it to the button!

At the very top of ViewController.m, add the line:
#import "MyClass.h"


This line will tell the ViewController class that there is a class MyClass.
Now back to our method:
- (IBAction) askHi: (id) sender
{
MyClass * obj = [[MyClass alloc] init];
[obj sayHi];
obj.myText = @ "Some text";
}


The first line creates an object of class MyClass. On the creation of the object - in the following lessons, for a start we will know that the object is created that way.
Then we call the sayHi method, and in the third line we write the text into the string.

Now, if you start the application and click on the button, then in the console you will get the lineHello, world :
Screen
Attached Image


Post has been editedKUKUndrik - 04.06.15, 19:03
KUKUndrik
Message#12
05.06.15, 20:25
*********
[offline]

Group: Moderators
Messages 3795
Check in: 04.09.13
Apple iPhone 7

Reputation:-  612  +

Installing the iOS SDK and Xcode

Instructions on how to run Mac OS on Windows.
*the PC must have at least 1 GB of RAM installed

Download the necessary files:


Instructions for running Xcode in a virtual machine

  1. Register an account inApple Dev Account
  2. Go to the App Store and download Xcode there (Download progress is available in the "Shopping" tab).
  3. Then go to the "Applications" folder from the "Finder" folder, double-click on the installation file and wait for the procedure to complete.
  4. After that, an Xcode icon will appear in the dock (If the icon does not appear, then go to the address "Hard Disk" - "Developer" - "Applications").
  5. Now you can click on the Xcode icon and start programming.
KUKUndrik
Message#13
10.06.15, 10:49
*********
[offline]

Group: Moderators
Messages 3795
Check in: 04.09.13
Apple iPhone 7

Reputation:-  612    +

Testing applications on iOS devices

For this we needsource filesand account iniOS Developer Program.
Attached fileSources.zip(30.08 KB)


Creating a certificate signing request

To obtain a design certificate, you need to create a certificate signing request (CSR). Create a CSR with the utilityKeychain AccessatOS X . The utility is searched in the folder Utilities (Utilities) → Applications (Applications). Open the menu Keychain Access, select Certificate Assistant , further indicate the option "Request a Certificate From a Certificate Authority" . Fill out the form where we enter your name and email address that you provided in the account of the Apple developer. We leave the email field of the authorization certificate empty, and do not forget to select the option "Saved to disk" , to save the certificate signing request to your system. Do not put a selection on the checkbox under the label "Let me specify key pair information" .

Attached Image

We press"Continue" , and specify the location of your CSR, then press the button "Save" . Check the folder you specified to see if the CSR was created. In Keychain Access, in the Keys category, we see public and private keys that have been added to your key chain for authorization.

Attached Image


Create a development certificate

We return to the iOS Provisioning Portal, and select the Certificates tab. Click on the “Request Certificate” and download the CSR that we generated in the previous step. We note that the status of the new certificate is set to Pending Issuance. After several updates of the page, the status should change to the issued, the download button should also appear on the right side. Click on the download button to download your new certificate of iOS development.TwiceClick on the certificate to add it to your authorization key chain.
Screenshots for instructions
Attached Image

Attached Image
Attached Image
Attached Image
Adding keys
Attached Image
Attached Image


Add iOS device

For you need to specify the devices on which your iOS application will run, adding the device to the iOS Provisioning Portal. We will review the iOS Provisioning Portal by clicking on the “Devices” tab, then click on the “Add Devices” button. To add a device, enter a descriptive device name and device ID.Device ID (also known as UDID) is an identifier that uniquely identifies an iOS device. Note that UDID is not the same as the serial number.

Attached Image

Find the UDID of the device by connecting it to the computer and running Organizer (Organizer) in Xcode. You can also open the organizer by choosing Window from the Xcode menu and then Organizer. Select the “Devices” tab at the top, then select the device you are interested in. Next you will be given a 40-character string next to the Identifier label - this will be the required UDID.

Attached Image
KUKUndrik
Message#14
27.06.15, 21:43
*********
[offline]

Group: Moderators
Messages 3795
Check in: 04.09.13
Apple iPhone 7

Reputation:-  612    +

Frameworks

Any iOS application is created using Objective-C and frameworks. The frameworks developed by Apple include a library of functions that your application accesses. At the same time, several applications can have access to the framework library at once at the same time.

Apple creates frameworks that already contain all the necessary functions, which saves time and is a kind of guarantee of the quality of the work done.
Attached Image


More details:
Survey the major frameworks
Integrate your code
KUKUndrik
Message#15
10.07.15, 20:03
*********
[offline]

Group: Moderators
Messages 3795
Check in: 04.09.13
Apple iPhone 7

Reputation:-  612    +

Development tools for iOS 8.x.x


  • Mogenerator
    In short: when you re-core the Core Data Entity, all changes are erased. Mogenerator separates generated from dataset. Judging by the reviews in the tracker, Swift 1.2 works fine.
  • Swift Bootstrap
    Web service to simplify the selection of colors, creating screenshots of the application and training screens. Implementation, admit, not too interesting. The idea to create code based on the results of filling out a web form is more interesting.
  • Bitrise
    CI for iOS in the cloud. First of all, there are not so many of them. Secondly, it has a free rate.



For codes


  • Introducing Parse Push for OS X
    Nikita Lutsenko from Parse reports that the ability to send push notifications to OS X has been added to the SDK.
  • Gaugekit
    Scales for displaying information, written in Swift, supported by @IBDesignable and @IBInspectable, lives in the form of a hearth. Take a look at the pictures in the readme.
  • Valet
    A wrapper around Keychain for iOS and OS X. Before that, I used SSKeychain, but here's a young punk.


Post has been editedKUKUndrik - 10.07.15, 20:05



 mobile version    Now: 04/18/19, 15:44