- 浏览: 318269 次
- 性别:
- 来自: 杭州
最新评论
-
atgoingguoat:
R.drawable.icon是LOG图
android九宫格实现 -
atgoingguoat:
android:src="@drawable/ico ...
android九宫格实现 -
修博龙泉:
旋转view:
CGAffineTransform at ...
动画-图片旋转 -
修博龙泉:
阻尼效果图片:
CALayer *layer = self.i ...
动画-图片旋转 -
bei-jin-520:
color]sdfsdfsdf
android九宫格实现
文章列表
ios 拍照旋转90度
- 博客分类:
- ios开发学习相关
- (UIImage*)rotateImage:(UIImage *)image
{
int kMaxResolution = 960; // Or whatever
CGImageRef imgRef = image.CGImage;
CGFloat width = CGImageGetWidth(imgRef);
CGFloat height = CGImageGetHeight(imgRef);
CGAffineTransform transform = CGAffineTransformIdentit ...
UINavigationController *nav = [[[UINavigationController alloc] initWithRootViewController:hotAlbum] autorelease];
nav.navigationBarHidden = YES;
[self presentModalViewController:nav animated:YES];
refreshArrowImageView.transform = CGAffineTransformMakeRotation(3.14);
Application requires iPhone environment
如果应用程序不能在ipod touch上运行,设置此项为true;
Application uses Wi-Fi
如果应用程序需要wi-fi才能工作,应该将此属性设置为true。这么做会提示用户,如果没有打开wi-fi的话,打开wi-fi。为了节省电力,iphone会在30分钟后自动关闭应用程序中的任何wi-fi。设置这一个属性可以防止这种情况的发生,并且保持连接处于活动状态
Bundle display name
这用于设置应用程序的名称,它显示在iphone屏幕的图标下方。应用程序名称限制在10-12个字符, ...
[self performSelector:@selector(descBack) withObject:nil afterDelay:2];
// [self dismissModalViewControllerAnimated:YES];
[self performSelector:@selector(hidenSelf) withObject:nil afterDelay:2];
#import "MBProgressHUD.h"
@interface UploadDesViewController : UIViewController<MBProgressHUDDelegate>{
MBProgressHUD *HUD;
}
@property (retain, nonatomic) MBProgressHUD *HUD;
.m
@synthesize HUD;
self.HUD = [[[MBProgressHUD alloc] initWithView:self.view] autorelease]; ...
#import "LabelTestViewController.h"
@implementation LabelTestViewController
/*
Accessing the Text Attributes
text property
font property
textColor property
textAlignment property
lineBreakMode property
enabled property
Sizing the ...
UISwitch 初始化
- 博客分类:
- ios开发学习相关
1.UISwitch的初始化
UISwitch *switchView = [[UISwitch alloc] initWithFrame:CGRectMake(54.0f, 16.0f, 100.0f, 28.0f)];
2.设置UISwitch的初始化状态
switchView.on = YES;//设置初始为ON的一边
3.UISwitch事件的响应
[switchView addTarget:self action:@selector(switchAction:) forControlEvents:UIControlEventValueChanged];
在cell中添加u ...
[cell.contentView addSubView:subView];
-(void)viewDidAppear:(BOOL)animated{
[wallTitle setText:@"图片墙"];
[wallTitle setFont:[UIFont fontWithName:@"STHeitiTC-Medium" size:23.5f]];
[self.view addSubview:wallTitle];
}
UIColor *color = [UIColor colorWithRed:88.0f/255.0f green:145.0f/255.0f blue:175 ...
NSString* result; // 结果字符串
NSString* string1, string2; //已存在的字符串
1. result = [NSString initWithFormat:@"%@,%@", string1, string2 ];
2. result = [string1 stringByAppendingString:string2];
3 . result = [result stringByAppendingFormat:@"%@,%@",string1, string2];
uibutton 对象传递
- 博客分类:
- ios开发学习相关
UIButton *btn = (UIButton *)[cell viewWithTag:101];
btn.frame = CGRectMake(5, 5, 150, hei - 10);
[btn addTarget:self action:@selector(selectPic:) forControlEvents:UIControlEventTouchUpInside];
if ([indexPath section]==0) {
picture = [guangPicLeftArray objectAtIndex:[in ...
headerImageScrollView = [[UIScrollView alloc]initWithFrame:CGRectMake(0,0, 320, 260)];
scrollView.contentSize = CGSizeMake(900, 960);
[self.view addSubview:scrollView];
// image = [[UIImageView alloc]initWithFrame:CGRectMake(5, 5, 80, 80)];
// [image setImage:[UIImage imageNamed ...
#pragma mark –
#pragma mark UITableView
-(CGFloat) tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
return 100*[indexPath row];
}
UIImageView 初始化
- 博客分类:
- ios开发学习相关
UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0,0,320,640)];
[imageView setBackgroundColor:[UIColor redColor]];
[imageView setImage:[UIImage imageNamed:@"0.jpg"]];
// imageView.image = [UIImage imageNamed:@"0.jpg"];//加载入图片
[self.v ...