摘要: UIGraphicsBeginImageContext(currentView.bounds.size); //currentView 当前的view[currentView.layer renderInContext:UIGraphicsGetCurrentContext()];UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();UIGraphicsEndImageContext();UIImageWriteToSavedPhotosAlbum(viewImage, nil, nil, nil); 阅读全文
posted @ 2012-05-22 18:07 chivas 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 1,创建并使用一个UINavigationControllerUINavigationController *aNav = [[UINavigationController alloc] init];然后添加一个视图进去,否则导航栏也没有意义的UIViewController *aView = [[UIView alloc] initWithNibName: (*xib文件名*)];[aNav pushViewController:aView animated:NO];//导航栏的第一个视图不要动画化2,设置导航栏的左右按钮:我说过,设置导航栏的按钮并不是去设置导航栏本身,而是当时被导航的视图 阅读全文
posted @ 2012-05-22 00:02 chivas 阅读(2213) 评论(0) 推荐(0) 编辑