1. [代码][C/C++]代码 //创建uilabelUILabel *label1 = [[UILabel alloc] initWithFrame:CGRectMake(20, 40, 280, 80)];//设置背景色label1.backgroundColor = [UIColor gr....
分类:
移动开发 时间:
2014-07-07 18:50:59
阅读次数:
212
UIImagePickerController *imagePickerController = [[UIImagePickerController alloc] init]; imagePickerController.delegate = self; i...
分类:
其他好文 时间:
2014-07-02 22:03:44
阅读次数:
220
//单指单击UITapGestureRecognizer *singleFingerOne = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleSingleFingerE...
分类:
其他好文 时间:
2014-07-02 17:44:34
阅读次数:
196
来源:http://ss64.com/osx/An A-Z Index of theApple OS Xcommand line alias Create an alias ? alloc List used and free memory apropos Search t...
分类:
移动开发 时间:
2014-07-01 17:46:48
阅读次数:
384
可以采用如下方法,写一个函数:
-(UIImage*) getOneImageButtonWithArrow{
//tmpView做附控件
UIView *tmpView = [[UIView alloc] initWithFrame:CGRectMake(0.0f, 0.0f, 38.0f, 32.0f)];
tmpView.backgroundColor = [UIColo...
分类:
移动开发 时间:
2014-07-01 09:54:31
阅读次数:
246
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view.
self.mapView = [[MKMapView alloc] initWithFrame:self.view.bounds];
self.mapView.mapType =...
分类:
其他好文 时间:
2014-07-01 06:17:34
阅读次数:
758
1, 添加手势self.longPressRecognizer = [[UILongPressGestureRecognizer alloc]initWithTarget:self action:@selector(handleLongPress:)];[btn addGestureRecogniz...
分类:
其他好文 时间:
2014-06-30 21:13:14
阅读次数:
251
初始化UISegmentedControlNSArray *arr = [[NSArray alloc]initWithObjects:@"轻拍",@"长按",@"清扫",@"旋转",@"捏合",@"拖拽", nil];//先创建一个数组用于设置标题UISegmentedControl *segme...
分类:
其他好文 时间:
2014-06-30 13:27:13
阅读次数:
187
在代码的deletegater中写:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScre...
分类:
其他好文 时间:
2014-06-30 10:48:04
阅读次数:
240
初始化一个SliderUISlider *slider = [[UISlider alloc]initWithFrame:CGRectMake(0, 400,320 , 20)];访问UISlider的值 slider.value = 3;//设置slider的值float value = slid...
分类:
其他好文 时间:
2014-06-29 18:47:27
阅读次数:
252