Connexion
S'inscrire
Actualités
Quoi de neuf
Activités générales
Auteurs
Forums
Nouveaux messages
Rechercher un forum
Wiki
Pages
Dernière activité
Quoi de neuf
Nouveaux messages
Nouveaux articles
Nouveaux messages de profil
Activités générales
Membres
Membres inscrits
Visiteurs actuels
Nouveaux messages de profil
Rechercher dans les messages des profils
Teams
Créé ton équipe
Magasin
Quoi de neuf ?
Nouveaux messages
Rechercher un forum
Menu
Connexion
S'inscrire
Install the app
Install
Forums
Plateformes
PC et Serveurs
MacOS
Coup d'œil sur Xcode et les applications Cocoa
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Vous utilisez un navigateur non à jour ou ancien. Il ne peut pas afficher ce site ou d'autres sites correctement.
Vous devez le mettre à jour ou utiliser un
navigateur alternatif
.
Répondre à la discussion
Message
<blockquote data-quote="delete221380" data-source="post: 4496116"><p style="text-align: center"><img src="http://image.noelshack.com/fichiers/2014/50/1418478969-banniere-topic-pour-devro-png-1.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p> <p style="text-align: center"></p> <p style="text-align: center"></p> <p style="text-align: center">Hello tout le monde, aujourd'hui on se retrouve pour un petit tutoriel sur les <span style="color: #588BFA"><strong>Applications Cocoa</strong></span></p> <p style="text-align: center">Je pense reprendre la série de tutoriels consacrer au <span style="color: #588BFA"><strong>développement </strong></span>mais cette fois sur <span style="color: #588BFA"><strong>OSX</strong></span></p> <p style="text-align: center">en utilisant Xcode, donc dans cette épisode on va présenter l'IDE d'Apple.</p> <p style="text-align: center">même si <span style="color: #588BFA"><strong>Apple</strong></span> est beaucoup moins <span style="color: #588BFA"><strong>permissif</strong></span> que Windows au niveau du <span style="color: #588BFA"><strong>développement</strong></span></p> <p style="text-align: center">on peut toutefois faire de très bonnes <span style="color: #588BFA"><strong>choses</strong></span>.</p> <p style="text-align: center"></p> <p style="text-align: center">N'hésitez pas à donner votre <span style="color: #588BFA"><strong>avis</strong></span>, qu'il soit <strong><span style="color: #ff8000">positif </span></strong><img src="http://image.noelshack.com/fichiers/2014/15/1397225789-like.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /> ou <strong><span style="color: #666600">négatif</span> </strong><img src="http://image.noelshack.com/fichiers/2014/15/1397225789-dislike.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /> pour les prochains épisodes</p> <p style="text-align: center"></p> <p style="text-align: center">Avant de commencer, je tiens a remercier <a href="http://reality-gaming.fr/members/magiik-sec.67780/" target="_blank">MaGiiK SEC</a> pour la bannière. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite391" alt=":membre:" title="Membre :membre:" loading="lazy" data-shortname=":membre:" /></p> <p style="text-align: center"></p> <p style="text-align: center"></p> <p style="text-align: center"><img src="http://image.noelshack.com/fichiers/2014/32/1407685278-ligne.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p> <p style="text-align: center"><img src="http://image.noelshack.com/fichiers/2014/37/1410443616-network-home-128.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p> <p style="text-align: center">Déjà on va commencer par le <span style="color: #588BFA"><strong>début,</strong></span> commencez par télécharger <span style="color: #588BFA"><strong>Xcode</strong></span></p> <p style="text-align: center">disponible depuis l'<span style="color: #588BFA"><strong>App Store</strong></span>, cette application est gratuite, je vous laisse un screen du produit</p> <p style="text-align: center">du Mac App Store</p> <p style="text-align: center"></p> <p style="text-align: center"><img src="http://image.noelshack.com/fichiers/2014/50/1418492545-scodestore.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p> <p style="text-align: center"></p> <p style="text-align: center">Une fois <span style="color: #588BFA"><strong>téléchargé et installé</strong></span>, il vous suffira de lancer l'application. En général le lancement</p> <p style="text-align: center">est assez <span style="color: #588BFA"><strong>rapide</strong></span>, dépendant de votre machine et</p> <p style="text-align: center">votre utilisation. Vous n'allez avoir aucun <span style="color: #588BFA"><strong>réglage</strong></span> à faire pour l'application.</p> <p style="text-align: center"></p> <p style="text-align: center"></p> <p style="text-align: center"><img src="http://image.noelshack.com/fichiers/2014/32/1407685278-ligne.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p> <p style="text-align: center"><img src="http://image.noelshack.com/fichiers/2014/50/1418479781-source-code-128.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p> <p style="text-align: center">Une fois Xcode lancé, vous tomberez sur une page comme celle-ci :</p> <p style="text-align: center"></p> <p style="text-align: center"></p> <p style="text-align: center"><img src="http://image.noelshack.com/fichiers/2014/50/1418480071-screenshot-at-dec-13-14-06-48.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p> <p style="text-align: center"></p> <p style="text-align: center"></p> <p style="text-align: center">Inutile de vous dire à quoi servent toutes les options je pense, vous savez déjà qu'on va</p> <p style="text-align: center">utiliser la seconde option. La 3ème ne sert à rien sauf si vous avez un projet Xcode</p> <p style="text-align: center">sous la main. Cliquez sur la <span style="color: #588BFA"><strong>seconde option</strong></span> et vous allez devoir choisir entre une application</p> <p style="text-align: center">destinée aux <span style="color: #588BFA"><strong>iDevice</strong> </span>ou à <span style="color: #588BFA"><strong>Mac OSX.</strong></span> Je vous montre comment faire une application <span style="color: #588BFA"><strong>Cocoa</strong></span> pour OSX</p> <p style="text-align: center">mais si ça vous dit je peux aussi montrer pour<span style="color: #0080ff"> <strong>iOS</strong></span>.</p> <p style="text-align: center"></p> <p style="text-align: center">Une fois que vous avez créer un nouveau <span style="color: #588BFA"><strong>projet Xcode</strong></span> vous allez tomber la dessus :</p> <p style="text-align: center"></p> <p style="text-align: center"></p> <p style="text-align: center"><img src="http://image.noelshack.com/fichiers/2014/50/1418480621-cocoachoose.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p> <p style="text-align: center"></p> <p style="text-align: center"></p> <p style="text-align: center">Allez bien dans la catégorie <span style="color: #588BFA"><strong>OSX > Application</strong> </span>puis choisissez <span style="color: #588BFA"><strong>Cocoa Application</strong></span>.</p> <p style="text-align: center">Après je vous montre juste la base, vous faites ce que vous voulez au finale.</p> <p style="text-align: center"></p> <p style="text-align: center">Jusqu'à là rien de bien compliqué si on regarde bien, mais c'est après que les choix vont</p> <p style="text-align: center">vraiment être <span style="color: #588BFA"><strong>importants</strong></span>, quand vous cliquez sur <img src="http://image.noelshack.com/fichiers/2014/50/1418480770-screenshot-at-dec-13-15-26-01.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /> vous allez devoir choisir entre</p> <p style="text-align: center">2 <span style="color: #588BFA"><strong>langages</strong></span>.</p> <p style="text-align: center"></p> <p style="text-align: center"></p> <p style="text-align: center"><img src="http://image.noelshack.com/fichiers/2014/50/1418480807-namelangagae.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p> <p style="text-align: center"></p> <p style="text-align: center"></p> <p style="text-align: center">Le nom du produit importe peu, par contre renseignez bien un <span style="color: #588BFA"><strong>nom d'organisation</strong></span>.</p> <p style="text-align: center">Vous comprendrez pourquoi par la suite. <span style="color: #588BFA"><strong>"Organization Name:"</strong></span> et <span style="color: #588BFA"><strong>"Organiation identifider:"</strong></span></p> <p style="text-align: center">sont obligatoirement à renseigner mais vous pouvez mettre n'importe quoi comme "Poney".</p> <p style="text-align: center">En <span style="color: #588BFA"><strong>langage</strong></span> d'application vous allez avoir le choix entre <span style="color: #588BFA"><strong>Objectiv-C</strong></span> et <span style="color: #588BFA"><strong>Swift</strong></span></p> <p style="text-align: center">choisissez <span style="color: #588BFA"><strong>Swift</strong></span>, merci [USER=215980]@Baptiste[/USER] pour ça d'ailleurs <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite171" alt=":D" title="Awesome face :D" loading="lazy" data-shortname=":D" /></p> <p style="text-align: center">De base la checkBox "<span style="color: #588BFA"><strong>Use Storyboards</strong></span>" est coch<span style="color: #000000">ée</span>, vous pouvez la décocher ça ne nous servira pas vraiment.</p> <p style="text-align: center"></p> <p style="text-align: center"></p> <p style="text-align: center">Une fois que vous avez tout bien renseigner, vous allez obtenir une page comme celle-ci :</p> <p style="text-align: center"></p> <p style="text-align: center"></p> <p style="text-align: center">[ATTACH=full]58065[/ATTACH] </p> <p style="text-align: center"></p> <p style="text-align: center"></p> <p style="text-align: center">Ne touchez à <span style="color: #588BFA"><strong>rien</strong></span>, dans tout les cas tout est bien configuré, enfin non il y a une <span style="color: #588BFA"><strong>exception</strong></span>.</p> <p style="text-align: center">L'application que l'ont viens de créer est faite pour tourner uniquement sur <span style="color: rgb(88, 139, 250)"><strong>OSX 10.10</strong></span></p> <p style="text-align: center">c'est à dire Yosemite donc si vous voulez l'exécuter sur des machines possédant</p> <p style="text-align: center">une version d'OSX antérieur il faudra modifier le "<span style="color: #588BFA"><strong>Deployment Target</strong></span>"</p> <p style="text-align: center"></p> <p style="text-align: center"></p> <p style="text-align: center"></p> <p style="text-align: center"><img src="http://image.noelshack.com/fichiers/2014/32/1407685278-ligne.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p> <p style="text-align: center"></p> <p style="text-align: center"><img src="http://image.noelshack.com/fichiers/2014/50/1418481923-user-128.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p> <p style="text-align: center"></p> <p style="text-align: center">Maintenant que l'on à <span style="color: #588BFA"><strong>créer le projet </strong></span>on <span style="color: #000000">a</span> plus grand chose à faire, il nous reste plus qu'à insérer une</p> <p style="text-align: center"><span style="color: #588BFA"><strong>UI</strong></span> et commencer le développement de notre application. Comme je l'ai dis Apple est beaucoup</p> <p style="text-align: center">moins permissif dans le développement d'application puisque ce genre de chose est la plus</p> <p style="text-align: center">grande source de <span style="color: #588BFA"><strong>bug/crash</strong></span> sur un OS.</p> <p style="text-align: center"></p> <p style="text-align: center">Pour créer l'interface il vous faut aller dans l'<span style="color: #588BFA"><strong>explorateur</strong></span> de fichier à votre gauche puis cliquez sur</p> <p style="text-align: center">le fichier nomm<span style="color: #000000">é</span> "<span style="color: #588BFA"><strong>MainMenu.xib</strong></span>" peu importe le nom du projet ou autre ce fichier aura toujours</p> <p style="text-align: center">le même nom donc <span style="color: #588BFA"><strong>no panic</strong></span> vous arriverez <span style="color: #0080ff"><span style="color: #000000">à</span> </span>le trouver.</p> <p style="text-align: center"></p> <p style="text-align: center"></p> <p style="text-align: center">[ATTACH=full]58064[/ATTACH]</p> <p style="text-align: center"></p> <p style="text-align: center"></p> <p style="text-align: center">En principe vous n'avez pas de formulaire quand vous <span style="color: #000000">ouvrez</span> le <span style="color: #588BFA"><strong>.xib</strong></span>, mais il suffit de cliquer en bas où</p> <p style="text-align: center">je l'ai indiqu<span style="color: #000000">é</span> sur le screen là où se trouve le bouton pour créer et éditer le formulaire</p> <p style="text-align: center">Maintenant vous pouvez tout <span style="color: #588BFA"><strong>éditer</strong></span>, sur la droite se trouve les outils <strong><span style="color: #0080ff">nécessaire</span></strong> au développement.</p> <p style="text-align: center">Au final on retiendra que <span style="color: #588BFA"> <strong>Xcode</strong></span> est un <span style="color: #588BFA"><strong>IDE</strong></span> propre est bien agencé.</p> <p style="text-align: center"></p> <p style="text-align: center">Amusez-vous un peu à faire votre application :</p> <p style="text-align: center"></p> <p style="text-align: center"></p> <p style="text-align: center"><img src="http://image.noelshack.com/fichiers/2014/50/1418482561-formulaire.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p> <p style="text-align: center">Ensuite il faudra <span style="color: #588BFA"><strong>générer l'application</strong></span> , pour le moment on va uniquement la <span style="color: #588BFA"><strong>construire</strong></span></p> <p style="text-align: center">pour voir ce que ça donne. Il suffit de cliquer sur le petit bouton <span style="color: #588BFA"><strong>"Play"</strong></span> en haut de Xcode</p> <p style="text-align: center">le build devrait se faire de façon automatique, et si aucune erreur (si aucun code n'est modifié) vous allez</p> <p style="text-align: center">recevoir une <span style="color: #588BFA"><strong>notification</strong></span> indiquant que le build est réussit.</p> <p style="text-align: center"></p> <p style="text-align: center"><img src="http://image.noelshack.com/fichiers/2014/50/1418482672-buldsucceed.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p> <p style="text-align: center"></p> <p style="text-align: center">Je vous avez demandé plus haut d'indiquer un <span style="color: #588BFA"><strong>nom d'entreprise</strong></span> qui servirait pour le Copyright.</p> <p style="text-align: center">Voilà où se retrouve votre <span style="color: #588BFA"><strong>copyright</strong></span> .</p> <p style="text-align: center"></p> <p style="text-align: center"></p> <p style="text-align: center"><img src="http://image.noelshack.com/fichiers/2014/50/1418482805-coy.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p> <p style="text-align: center"></p> <p style="text-align: center"></p> <p style="text-align: center">Vous pouvez toutefois <span style="color: #588BFA"><strong>retrouver</strong></span> votre application en suivant ce <span style="color: #588BFA"><strong>chemin</strong></span></p> <p style="text-align: center"></p> <p style="text-align: center">Macintosh HD ▸ Utilisateurs ▸ devr0 ▸ Bibliothèque ▸ Developer ▸ Xcode ▸ DerivedData ▸ Projet ▸ Build ▸ Products ▸ Debug</p> <p style="text-align: center"></p> <p style="text-align: center"><img src="http://image.noelshack.com/fichiers/2014/50/1418491794-screenshot-at-dec-13-18-29-05.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p> <p style="text-align: center"></p> <p style="text-align: center"></p> <p style="text-align: center"><img src="http://image.noelshack.com/fichiers/2014/32/1407685278-ligne.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p> <p style="text-align: center"></p> <p style="text-align: center"><img src="http://image.noelshack.com/fichiers/2014/37/1410445326-close-128.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p> <p style="text-align: center"></p> <p style="text-align: center">Ce tutoriel est désormais <span style="color: #588BFA"><strong>terminé</strong></span>, c'était un rapide coup d'oeil sur <span style="color: #588BFA"><strong>Xcode</strong></span> , on fera des</p> <p style="text-align: center">choses bien plus poussé par la suite mais faut bien poser les <span style="color: #588BFA"><strong>bases</strong></span> <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite351" alt=";)" title="Clin d'oeil ;)" loading="lazy" data-shortname=";)" /></p> <p style="text-align: center"></p> <p style="text-align: center"></p> <p style="text-align: center"></p></blockquote><p></p>
[QUOTE="delete221380, post: 4496116"] [CENTER][IMG]http://image.noelshack.com/fichiers/2014/50/1418478969-banniere-topic-pour-devro-png-1.png[/IMG] Hello tout le monde, aujourd'hui on se retrouve pour un petit tutoriel sur les [COLOR=#588BFA][B]Applications Cocoa[/B][/COLOR] Je pense reprendre la série de tutoriels consacrer au [COLOR=#588BFA][B]développement [/B][/COLOR]mais cette fois sur [COLOR=#588BFA][B]OSX[/B][/COLOR] en utilisant Xcode, donc dans cette épisode on va présenter l'IDE d'Apple. même si [COLOR=#588BFA][B]Apple[/B][/COLOR] est beaucoup moins [COLOR=#588BFA][B]permissif[/B][/COLOR] que Windows au niveau du [COLOR=#588BFA][B]développement[/B][/COLOR] on peut toutefois faire de très bonnes [COLOR=#588BFA][B]choses[/B][/COLOR]. N'hésitez pas à donner votre [COLOR=#588BFA][B]avis[/B][/COLOR], qu'il soit [B][COLOR=#ff8000]positif [/COLOR][/B][IMG]http://image.noelshack.com/fichiers/2014/15/1397225789-like.png[/IMG] ou [B][COLOR=#666600]négatif[/COLOR] [/B][IMG]http://image.noelshack.com/fichiers/2014/15/1397225789-dislike.png[/IMG] pour les prochains épisodes Avant de commencer, je tiens a remercier [URL='http://reality-gaming.fr/members/magiik-sec.67780/']MaGiiK SEC[/URL] pour la bannière. :membre: [IMG]http://reality-gaming.fr/proxy.php?image=http%3A%2F%2Fimage.noelshack.com%2Ffichiers%2F2014%2F32%2F1407685278-ligne.png&hash=4525ee770eae09381797112afb447b27[/IMG] [IMG]http://reality-gaming.fr/proxy.php?image=http%3A%2F%2Fimage.noelshack.com%2Ffichiers%2F2014%2F37%2F1410443616-network-home-128.png&hash=e0e53bdcb0e05611157b1deb64e94d87[/IMG] Déjà on va commencer par le [COLOR=#588BFA][B]début,[/B][/COLOR] commencez par télécharger [COLOR=#588BFA][B]Xcode[/B][/COLOR] disponible depuis l'[COLOR=#588BFA][B]App Store[/B][/COLOR], cette application est gratuite, je vous laisse un screen du produit du Mac App Store [IMG]http://image.noelshack.com/fichiers/2014/50/1418492545-scodestore.png[/IMG] Une fois [COLOR=#588BFA][B]téléchargé et installé[/B][/COLOR], il vous suffira de lancer l'application. En général le lancement est assez [COLOR=#588BFA][B]rapide[/B][/COLOR], dépendant de votre machine et votre utilisation. Vous n'allez avoir aucun [COLOR=#588BFA][B]réglage[/B][/COLOR] à faire pour l'application. [IMG]http://reality-gaming.fr/proxy.php?image=http%3A%2F%2Fimage.noelshack.com%2Ffichiers%2F2014%2F32%2F1407685278-ligne.png&hash=4525ee770eae09381797112afb447b27[/IMG] [IMG]http://image.noelshack.com/fichiers/2014/50/1418479781-source-code-128.png[/IMG] Une fois Xcode lancé, vous tomberez sur une page comme celle-ci : [IMG]http://image.noelshack.com/fichiers/2014/50/1418480071-screenshot-at-dec-13-14-06-48.png[/IMG] Inutile de vous dire à quoi servent toutes les options je pense, vous savez déjà qu'on va utiliser la seconde option. La 3ème ne sert à rien sauf si vous avez un projet Xcode sous la main. Cliquez sur la [COLOR=#588BFA][B]seconde option[/B][/COLOR] et vous allez devoir choisir entre une application destinée aux [COLOR=#588BFA][B]iDevice[/B] [/COLOR]ou à [COLOR=#588BFA][B]Mac OSX.[/B][/COLOR] Je vous montre comment faire une application [COLOR=#588BFA][B]Cocoa[/B][/COLOR] pour OSX mais si ça vous dit je peux aussi montrer pour[COLOR=#0080ff] [B]iOS[/B][/COLOR]. Une fois que vous avez créer un nouveau [COLOR=#588BFA][B]projet Xcode[/B][/COLOR] vous allez tomber la dessus : [IMG]http://image.noelshack.com/fichiers/2014/50/1418480621-cocoachoose.png[/IMG] Allez bien dans la catégorie [COLOR=#588BFA][B]OSX > Application[/B] [/COLOR]puis choisissez [COLOR=#588BFA][B]Cocoa Application[/B][/COLOR]. Après je vous montre juste la base, vous faites ce que vous voulez au finale. Jusqu'à là rien de bien compliqué si on regarde bien, mais c'est après que les choix vont vraiment être [COLOR=#588BFA][B]importants[/B][/COLOR], quand vous cliquez sur [IMG]http://image.noelshack.com/fichiers/2014/50/1418480770-screenshot-at-dec-13-15-26-01.png[/IMG] vous allez devoir choisir entre 2 [COLOR=#588BFA][B]langages[/B][/COLOR]. [IMG]http://image.noelshack.com/fichiers/2014/50/1418480807-namelangagae.png[/IMG] Le nom du produit importe peu, par contre renseignez bien un [COLOR=#588BFA][B]nom d'organisation[/B][/COLOR]. Vous comprendrez pourquoi par la suite. [COLOR=#588BFA][B]"Organization Name:"[/B][/COLOR] et [COLOR=#588BFA][B]"Organiation identifider:"[/B][/COLOR] sont obligatoirement à renseigner mais vous pouvez mettre n'importe quoi comme "Poney". En [COLOR=#588BFA][B]langage[/B][/COLOR] d'application vous allez avoir le choix entre [COLOR=#588BFA][B]Objectiv-C[/B][/COLOR] et [COLOR=#588BFA][B]Swift[/B][/COLOR] choisissez [COLOR=#588BFA][B]Swift[/B][/COLOR], merci [USER=215980]@Baptiste[/USER] pour ça d'ailleurs :D De base la checkBox "[COLOR=#588BFA][B]Use Storyboards[/B][/COLOR]" est coch[COLOR=#000000]ée[/COLOR], vous pouvez la décocher ça ne nous servira pas vraiment. Une fois que vous avez tout bien renseigner, vous allez obtenir une page comme celle-ci : [ATTACH=full]58065[/ATTACH] Ne touchez à [COLOR=#588BFA][B]rien[/B][/COLOR], dans tout les cas tout est bien configuré, enfin non il y a une [COLOR=#588BFA][B]exception[/B][/COLOR]. L'application que l'ont viens de créer est faite pour tourner uniquement sur [COLOR=rgb(88, 139, 250)][B]OSX 10.10[/B][/COLOR] c'est à dire Yosemite donc si vous voulez l'exécuter sur des machines possédant une version d'OSX antérieur il faudra modifier le "[COLOR=#588BFA][B]Deployment Target[/B][/COLOR]" [IMG]http://reality-gaming.fr/proxy.php?image=http%3A%2F%2Fimage.noelshack.com%2Ffichiers%2F2014%2F32%2F1407685278-ligne.png&hash=4525ee770eae09381797112afb447b27[/IMG] [IMG]http://image.noelshack.com/fichiers/2014/50/1418481923-user-128.png[/IMG] Maintenant que l'on à [COLOR=#588BFA][B]créer le projet [/B][/COLOR]on [COLOR=#000000]a[/COLOR] plus grand chose à faire, il nous reste plus qu'à insérer une [COLOR=#588BFA][B]UI[/B][/COLOR] et commencer le développement de notre application. Comme je l'ai dis Apple est beaucoup moins permissif dans le développement d'application puisque ce genre de chose est la plus grande source de [COLOR=#588BFA][B]bug/crash[/B][/COLOR] sur un OS. Pour créer l'interface il vous faut aller dans l'[COLOR=#588BFA][B]explorateur[/B][/COLOR] de fichier à votre gauche puis cliquez sur le fichier nomm[COLOR=#000000]é[/COLOR] "[COLOR=#588BFA][B]MainMenu.xib[/B][/COLOR]" peu importe le nom du projet ou autre ce fichier aura toujours le même nom donc [COLOR=#588BFA][B]no panic[/B][/COLOR] vous arriverez [COLOR=#0080ff][COLOR=#000000]à[/COLOR] [/COLOR]le trouver. [ATTACH=full]58064[/ATTACH] En principe vous n'avez pas de formulaire quand vous [COLOR=#000000]ouvrez[/COLOR] le [COLOR=#588BFA][B].xib[/B][/COLOR], mais il suffit de cliquer en bas où je l'ai indiqu[COLOR=#000000]é[/COLOR] sur le screen là où se trouve le bouton pour créer et éditer le formulaire Maintenant vous pouvez tout [COLOR=#588BFA][B]éditer[/B][/COLOR], sur la droite se trouve les outils [B][COLOR=#0080ff]nécessaire[/COLOR][/B] au développement. Au final on retiendra que [COLOR=#588BFA] [B]Xcode[/B][/COLOR] est un [COLOR=#588BFA][B]IDE[/B][/COLOR] propre est bien agencé. Amusez-vous un peu à faire votre application : [IMG]http://image.noelshack.com/fichiers/2014/50/1418482561-formulaire.png[/IMG] Ensuite il faudra [COLOR=#588BFA][B]générer l'application[/B][/COLOR] , pour le moment on va uniquement la [COLOR=#588BFA][B]construire[/B][/COLOR] pour voir ce que ça donne. Il suffit de cliquer sur le petit bouton [COLOR=#588BFA][B]"Play"[/B][/COLOR] en haut de Xcode le build devrait se faire de façon automatique, et si aucune erreur (si aucun code n'est modifié) vous allez recevoir une [COLOR=#588BFA][B]notification[/B][/COLOR] indiquant que le build est réussit. [IMG]http://image.noelshack.com/fichiers/2014/50/1418482672-buldsucceed.png[/IMG] Je vous avez demandé plus haut d'indiquer un [COLOR=#588BFA][B]nom d'entreprise[/B][/COLOR] qui servirait pour le Copyright. Voilà où se retrouve votre [COLOR=#588BFA][B]copyright[/B][/COLOR] . [IMG]http://image.noelshack.com/fichiers/2014/50/1418482805-coy.png[/IMG] Vous pouvez toutefois [COLOR=#588BFA][B]retrouver[/B][/COLOR] votre application en suivant ce [COLOR=#588BFA][B]chemin[/B][/COLOR] Macintosh HD ▸ Utilisateurs ▸ devr0 ▸ Bibliothèque ▸ Developer ▸ Xcode ▸ DerivedData ▸ Projet ▸ Build ▸ Products ▸ Debug [IMG]http://image.noelshack.com/fichiers/2014/50/1418491794-screenshot-at-dec-13-18-29-05.png[/IMG] [IMG]http://reality-gaming.fr/proxy.php?image=http%3A%2F%2Fimage.noelshack.com%2Ffichiers%2F2014%2F32%2F1407685278-ligne.png&hash=4525ee770eae09381797112afb447b27[/IMG] [IMG]http://reality-gaming.fr/proxy.php?image=http%3A%2F%2Fimage.noelshack.com%2Ffichiers%2F2014%2F37%2F1410445326-close-128.png&hash=976a60c217f5ec2294ce843e33131c1c[/IMG] Ce tutoriel est désormais [COLOR=#588BFA][B]terminé[/B][/COLOR], c'était un rapide coup d'oeil sur [COLOR=#588BFA][B]Xcode[/B][/COLOR] , on fera des choses bien plus poussé par la suite mais faut bien poser les [COLOR=#588BFA][B]bases[/B][/COLOR] ;) [/CENTER] [/QUOTE]
Insérer les citations…
Vérification
Publier la réponse
Forums
Plateformes
PC et Serveurs
MacOS
Coup d'œil sur Xcode et les applications Cocoa
Ce site utilise des cookies. En continuant à utiliser ce site, vous acceptez l'utilisation des cookies.
Acceptez
En savoir plus.…
Haut