论坛全局菜单下方 - TICKMILL 285X70论坛全局菜单下方 - ThinkMarkets285X70论坛全局菜单下方 - 荔枝返现285X70论坛全局菜单下方 -  icmarkets285X70
  • 1
  • 2
  • 3
前往
共 43 条
查看:764回复:42
圣光万岁
注册时间2015-05-04
[灌水]测试贴3
楼主发表于:2016-06-22 06:54只看该作者倒序浏览
1楼 电梯直达
电梯直达
Note from Ray: Tutorial Team member Felipe Laso Marsetti has ported this tutorial to iOS 7 as part of the iOS 7 feast
. We hope you enjoy!

Whether you’re a solo developer or working on a team, if you’re not using source control for your projects, you should be.
Source control is amazing because it helps you more easily revert to older version of your code, see how your code has changed over time, and work as a team. And one of the best source control systems is built right into Xcode – Git!
Git is a distributed version control system initially developed by Linus Torvalds, the principal force behind the development of the Linux kernel. The nice thing about Git is there doesn’t have to be any central repository – everyone can have their own view of the code, and pull in changes from other sources.
In this tutorial, you’ll get hands on experience with Git and learn how to use it directly inside Xcode, the command line, and even how to integrate your Xcode projects with Github, a popular online git repository. This tutorial is fully updated for iOS 7 and covers Git using Xcode 5.
So without further ado, let’s Git going!
Gitting StartedRather than ramble on about the theory of Git, you’re going to dive right in and try it out. You’ll create a new Xcode project and try out some typical tasks you will typically do on a day-to-day basis with Git source control.
So fire up Xcode and create a new Single View Application from the available templates.
http://img1.tuicool.com/v6n6Fv.png!web

Now, fill in the template options as follows:
http://img2.tuicool.com/qAzQje.png!web

[list] [*]Product Name : GitUseExample [*]Company identifier : As the name indicates, it’s your company identifier, if you have one. Otherwise, type whatever. [*]Class prefix : Leave this empty. [*]Device family : iPhone [/list]Now click Next. The following dialog allows you to choose where to save your project. Choose the location and make sure “Create git repository on My Mac” is selected before you click the create button. Once you do that, click the “Create” button.
http://img2.tuicool.com/26zAB3.png!web

By checking that, Xcode will create an empty Git repository and use the basis of your new project as your first commit. Well, that’s exactly what you want!
http://img0.tuicool.com/qAFjUr.png!web
All source control systems, including Git, store their data into a repository so that they can manage your project versions and keep track of changes throughout the development cycle. So think of a repository as a database for versions.
In the course of working on your project, you’ll add files, modify code, and change your project many times.
After you make a big set of changes and are in a “known good” state (typically one or more times per day), it’s a good idea to check in your changes back into the repository. This way, you have a record of “known good” states that you can always revert back to.
But what about the code that’s in your project already, that was created by the project template? Take a look at the following screen.
http://img0.tuicool.com/a6BnYf.png!web

Your project is still blank, and since you didn’t make changes yet, you don’t need to commit. But, basically, Xcode has added and committed several files when you created your project. That commit is the initial commit performed automatically by Xcode :]
To check that, click the Source Control menu item and select History… .
http://img1.tuicool.com/e6b6J3.png!web

In the drop down window, notice there’s a commit along with some information about it like the commit hash, date and time, person who made the commit, files change, and commit message.
http://img1.tuicool.com/zyArQ3.png!web

If you click on the text that says “Show 18 modified files” a new pane will drop down containing information about all of the files that were committed, as well as what was changed in each one.
http://img1.tuicool.com/yyi2Ur.png!web

Now, try to make some changes within your files. For example, open upAppDelegate.m and change application:didFinishLaunchingWithOptions: to the following:
-
(
BOOL
)
application:
(
UIApplication *
)
application didFinishLaunchingWithOptions:
(
NSDictionary

*
)
launchOptions{
// Override point for customization after application launch.
NSLog(
@
"
application did finish launching"
); return YES;}

After you save the file, you will note that AppDelegate.m now has a “M” badge next to the filename:
http://img1.tuicool.com/ymIfim.png!web

[color=rgb(51, 51, 51)]The “M” badge stands for “modified.” Specif
TK29帖子1楼右侧xm竖版广告90-240
个性签名

韬客社区www.talkfx.co

广告
TK30+TK31帖子一樓廣告
TK30+TK31帖子一樓廣告
koumyou
注册时间2014-05-14
发表于:2016-06-22 07:24只看该作者
4楼
MD,刷積分
个性签名

第二階跨第三階中。。。(2024)又五年过去了,才知道自己还没有进入第二阶

圣光万岁
注册时间2015-05-04
楼主发表于:2016-06-22 07:45只看该作者
5楼
这是测试帖,看帖子名称
圣光万岁
注册时间2015-05-04
楼主发表于:2016-06-22 07:47只看该作者
7楼
圣光万岁 发表于 2016-06-22 03:28
这是测试帖,看帖子名称
emoji-image
wxj
注册时间2015-05-14
wxj
注册时间2015-05-14
wxj
注册时间2015-05-14
圣光万岁
注册时间2015-05-04
楼主发表于:2016-06-22 07:49只看该作者
11楼
个性签名

韬客社区www.talkfx.co

圣光万岁
注册时间2015-05-04
圣光万岁
注册时间2015-05-04
圣光万岁
注册时间2015-05-04
楼主发表于:2016-06-22 13:27只看该作者
14楼
个性签名

韬客社区www.talkfx.co

圣光万岁
注册时间2015-05-04
圣光万岁
注册时间2015-05-04
圣光万岁
注册时间2015-05-04
楼主发表于:2016-06-23 02:14只看该作者
19楼
八十
圣光万岁
注册时间2015-05-04
  • 1
  • 2
  • 3
前往
共 43 条

本站免责声明:

1、本站所有广告及宣传信息均与韬客无关,如需投资请依法自行决定是否投资、斟酌资金安全及交易亏损风险;

2、韬客是独立的、仅为投资者提供交流的平台,网友发布信息不代表韬客的观点与意思表示,所有因网友发布的信息而造成的任何法律后果、风险与责任,均与韬客无关;

3、金融交易存在极高法律风险,未必适合所有投资者,请不要轻信任何高额投资收益的诱导而贸然投资;投资保证金交易导致的损失可能超过您投入的资金和预期。请您考虑自身的投资经验及风险承担能力,进行合法、理性投资;

4、所有投资者的交易帐户应仅限本人使用,不应交由第三方操作,对于任何接受第三方喊单、操盘、理财等操作的投资和交易,由此导致的任何风险、亏损及责任由投资者个人自行承担;

5、韬客不隶属于任何券商平台,亦不受任何第三方控制,韬客不邀约客户投资任何保证金交易,不接触亦不涉及投资者的任何资金及账户信息,不代理任何交易操盘行为,不向客户推荐任何券商平台,亦不存在其他任何推荐行为。投资者应自行选择券商平台,券商平台的任何行为均与韬客无关。投资者注册及使用韬客即表示其接受和认可上述声明,并自行承担法律风险。

版权所有:韬客外汇论坛 www.talkfx.com 联络我们:[email protected]