小编ran*_*ani的帖子

在iphone sdk 4.3中单击按钮的警报消息

我是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)

请帮我解决这个问题.

iphone xcode alert onclick button

7
推荐指数
1
解决办法
6万
查看次数

iCarousel集成到iOS 6.1中具有Tab栏控制器的应用程序

我将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)

请建议我.

提前致谢

uitabbarcontroller icarousel ios6

6
推荐指数
1
解决办法
413
查看次数

如何在iOS中一次录制前后摄像头的视频

如何使用swift在iOS中同时使用前置和后置摄像头录制视频.那是在用前置摄像头从iPhone录制视频时,我想打开相机并录制视频.这意味着终于在一个视频文件中我只想覆盖双方

camera ios swift

6
推荐指数
3
解决办法
7693
查看次数

iOS中语音到文本的示例

我是iOS编程的新手.您能告诉我如何在iOS中将语音转换为文本吗?是否有任何API调用?请建议我如何继续?

cocoa-touch speech-to-text ios

5
推荐指数
1
解决办法
1万
查看次数

如何在sqlite数据库中查找列的最大值

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();

但它强行关闭了应用程序.请帮助我

sqlite android

3
推荐指数
2
解决办法
1万
查看次数