Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: a4dbf0967c
Fetching contributors…

Cannot retrieve contributors at this time

file 21 lines (17 sloc) 0.528 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
//
// PSGlobal.m
//
// Created by Peter Steinberger on 09.11.09.
//

#import "PSGlobal.h"


CGFloat PSAppWidth(void) {
  if (UIInterfaceOrientationIsPortrait([UIApplication sharedApplication].statusBarOrientation)) {
    return [UIScreen mainScreen].bounds.size.width;
  } else {
    return [UIScreen mainScreen].bounds.size.height;
  }
}

inline NSString *MTDocumentsDirectory(void) {
    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
    return [paths objectAtIndex:0];
}
Something went wrong with that request. Please try again.