Loading

Tuesday, November 25, 2014

Get Top View of our app

    UIWindow *topWindow = [[[UIApplication sharedApplication].windows sortedArrayUsingComparator:^NSComparisonResult(UIWindow *win1, UIWindow *win2) {
        return win1.windowLevel - win2.windowLevel;
    }] lastObject];

    UIView *topView = [[topWindow subviews] lastObject];

Tuesday, November 18, 2014

Location of Messages in mac


~/Library/Containers/com.apple.iChat/Data/Library/Messages/Archive