xcode tips

The keyboard shortcut for switching between the header file and the implementation file is Command-Control-UP arrow.

ESCautocomplete
SHIFT+COMMAND+UPswitch header/impl
SHIFT+OPTION+COMMAND+?help doc
OPTION+DOUBLE CLICKdoc
COMMAND+DOUBLE CLICKdoc
OPTION+COMMAND+LEFTfold(collapse) block
OPTION+COMMAND+RIGHTunfold(expand) block
SHIFT+OPTION+COMMAND+LEFTfold all blocks
SHIFT+OPTION+COMMAND+RIGHTunfold all blocks
COMMAND+Lgo to the line
CONTROL+Lcenters the current line
CONTROL+COMMAND+LEFTnavigation history
CONTROL+COMMAND+RIGHTnavigation history
CONTROL+[1...6]navigation within a file
CONTROL+COMMAND+Erefactoring: edit all in scope
COMMAND+SHIFT+{ OR }cycling through tabs
COMMAND+SHIFT+G(in Finder) ~/Library/Application Support/iPhone Simulator to check sandbox
  
#pragma mark -
#pragma mark <title>
(a '_' draws a separator)
//TODO: blah
//FIXME: blah

 

connections

Right click or CONTROL click on the File's Owner to bring up the connections panel.

Drag from the circle beside xxxfield to UIxxx.

 

 

You can automatically import a library in all of the source files of your project by adding the import to the prefix header of your project. To do this, simply add the import function to the Prefix.pch file located in the other sources folder of your project hierarchy.

//
// Prefix header for all source files of the 'Locations' target in the 'Locations' project
//

#import <Availability.h>

#ifndef __IPHONE_3_0
// #warning "Projects that use Core Data only build using iPhone SDK 3.0 and later"
#endif

#ifdef __OBJC__
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <CoreData/CoreData.h>
#endif

转载于:https://www.cnblogs.com/grep/archive/2012/04/28/2474650.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值