转载自:http://www.jianshu.com/p/d8e31684146d
UIImageRenderingMode
在IOS7中增加创建UITabBarItem的方法的同时新增了 UIImageRenderingMode属性。
typedef NS_ENUM(NSInteger, UIImageRenderingMode) {
UIImageRenderingModeAutomatic, // Use the default rendering mod[......]
Category Archives: iOS
ios如何截取屏幕并保存为图片
UIGraphicsBeginImageContext(self.view.bounds.size); //currentView 当前的view 创建一个基于位图的图形上下文并指定大小为
[self.view.layer renderInContext:UIGraphicsGetCurrentContext()];//renderInContext呈现接受者及其子范围到指定的上下文
UIImage *viewImage = UIGraphicsGetImageFromCu[......]
[转]ios拍照UIImagePickerController在iPhone和iPad中用法的一点不同
转载自:
我们知道,在iPhone中获取照片库常用的方法如下:
UIImagePickerController *m_imagePicker = [[UIImagePickerController alloc] init];
if ([UIImagePickerController isSourceTypeAvailable:
UIImagePickerControllerSourceTypePhotoLibrary]) {
m_image[......]
UITableCell使用默认样式设置CheckMark后不居中对齐的问题
没有测过各个ios版本的兼容性:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"cell"];
cell.textLabel.text = ...;
if (/*[......]
[转]iOS开发过程中怎么知道当前视图控制器是怎么来的?
1.present.2.dismissed.3.push.4.pop.
- (BOOL)isBeingPresented NS_AVAILABLE_IOS(5_0);
- (BOOL)isBeingDismissed NS_AVAILABLE_IOS(5_0);
- (BOOL)isMovingToParentViewController NS_AVAILABLE_IOS(5_0);
- (BOOL)isMovingFromParentViewController NS_AVAILA[......]