IOS resource 규격

ICON

  • icon-72 : 72*72
  • icon-144 : 144*144
  • icon-Small-50 : 50*50
  • icon-Small : 29*29
  • icon-Small@2x : 58*58
  • icon : 57*57
  • icon@2x : 144*144
  • iTunesArtwork : 512*512
  • AppStore Page icon : 1024*1024

SCREEN

  • iPhone 4 : 320*480(P)
  • iPhone 5: 320*568(P)
  • iPad : 1024*768(L)

UI

  • Status Bar height : 20
  • Navigation bar height : 40
  • Tab bar icon : 30

http://www.vickiwenderlich.com/2012/07/iphone-ipad-basic-screen-component-dimensions-updated-for-retina/

Advertisements

audio play 볼륨 조절하기

AVAudioPlayer *silentPlayer;
NSString *soundFile =[NSString stringWithFormat:@”%@/%@”, [[NSBundle mainBundle] resourcePath], @”1-welcome.wav”];
NSData *data = [NSData dataWithContentsOfFile:soundFile];

if (data){
NSError *outError;
silentPlayer = [[AVAudioPlayer alloc] initWithData:data error:&outError];
}else{
// trigger some error
}

silentPlayer.delegate = self;
silentPlayer.volume = 0.;
[silentPlayer play];