| Home 目次>ApplicationKit>NSDrawer このサイトはこちらに移転しました。 | |
setLeadingOffset:
引き出しが表示される上(左)からのオフセット値をセットします
-(void) setLeadingOffset:(float)offset
【返り値】 | |
| void | なし |
| 【パラメータ】 | |
| offset | オフセット |
【解説】
引き出しが表示される上(左)からのオフセット値をセットします。
【例文】
#import "MyObject.h"
@implementation MyObject
- (IBAction)myAction1:(id)sender
{
[drawer open];
[drawer setLeadingOffset:50.0];
NSLog([NSString stringWithFormat:@"leadingOffset=%.1f",[drawer leadingOffset]]);
}
- (IBAction)myAction2:(id)sender
{
[drawer close];
}
@end
![]() | |
この記事を評価してください。
| Home 目次>ApplicationKit>NSDrawer | 修正日2006.12.26 |