| Home 目次>ApplicationKit>NSDrawer | |
leadingOffset
引き出しが表示される上からのオフセット値を返します
-(float) leadingOffset
【返り値】 | |
| float | オフセット |
【解説】
引き出しが表示される上からのオフセット値を返します。
【例文】
#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 |