我是xcode编程的初学者.当我们要点击xcode-iphone-4.3中的按钮时,请告诉我如何显示警告信息
我的守则如下,
- (IBAction)buttonPressed:(id)sender{
UIAlertView* mes=[[UIAlertView alloc] initWithTitle:@"Hello World!!!!!!"
message:@"This is the Iphone app" delegate:self cancelButtonTitle:@"Ok" otherButtonTitles: nil];
[mes show];
[mes release];
Run Code Online (Sandbox Code Playgroud)
请帮我解决这个问题.
我将iCarousel应用程序与单视图应用程序集成.但是当我添加标签栏控制器并将此iCarousel代码放在一个标签栏中时,项目viewcontroller.But它不起作用(项目显示但不滚动).这里有什么问题.
我创建了iCarousel如下:
iCarousel *categorySubView = [[iCarousel alloc]initWithFrame:CGRectMake(0,200, 300, 125)];
categorySubView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
categorySubView.delegate = self;
categorySubView.dataSource = self;
categorySubView.type=iCarouselTypeRotary;
[self.view addSubview:categorySubView];
Run Code Online (Sandbox Code Playgroud)
我使用以下delegae和数据源方法:
-(NSUInteger)numberOfItemsInCarousel:(iCarousel *)carousel
{
return 5;
}
- (UIView *) carousel:(iCarousel *)carousel viewForItemAtIndex:(NSUInteger)index reusingView:(UIView *)view{
UIView *sampleView=[[UIView alloc]initWithFrame:CGRectMake(0, 0, 250, 300)];
sampleView.backgroundColor=[UIColor whiteColor];
UILabel *labelis=[[UILabel alloc]initWithFrame:CGRectMake(10, 10, 100, 20)];
labelis.backgroundColor=[UIColor clearColor];
labelis.text=@"8Apr-14Apr";
[sampleView addsubView:labelis];
return sampleView;
}
Run Code Online (Sandbox Code Playgroud)
请建议我.
提前致谢
如何使用swift在iOS中同时使用前置和后置摄像头录制视频.那是在用前置摄像头从iPhone录制视频时,我想打开相机并录制视频.这意味着终于在一个视频文件中我只想覆盖双方
我是iOS编程的新手.您能告诉我如何在iOS中将语音转换为文本吗?是否有任何API调用?请建议我如何继续?
public Cursor getBiggestInTheColumn()
{
return db.query(HEADER_TABLE, null,"MAX(key_Division)", null, null, null, null);
}
Run Code Online (Sandbox Code Playgroud)
我将此方法称为 Cursor cc=db.getBiggestInTheColumn();
但它强行关闭了应用程序.请帮助我