可以从另一个内部调用一个方法.我已经实现了这个功能
- (void)pickAndDecodeFromSource:(UIImagePickerControllerSourceType) sourceType
Run Code Online (Sandbox Code Playgroud)
我想在上面的方法中调用以下方法.
- (void) viewDidAppear:(BOOL)animated
Run Code Online (Sandbox Code Playgroud) 谢谢你提前给我回答....我是iPhone的初学者.
我真的很兴奋为什么我们在iphone中使用#ifdef DEBUG.也想知道如何使用它及其限制的信息.
我使用NSObject类并使用CGContext方法开发了图形.以下代码以X和Y轴间隔动态显示,
CGContextSetRGBStrokeColor(ctx, 2.0, 2.0, 2.0, 1.0);
CGContextSetLineWidth(ctx, 2.0);
CGContextMoveToPoint(ctx, 30.0, 200.0);
CGContextAddLineToPoint(ctx, 30.0, 440.0);
for(float y = 400.0; y >= 200.0; y-=30)
{
CGContextSetRGBStrokeColor(ctx, 2.0, 2.0, 2.0, 1.0);
CGContextMoveToPoint(ctx, 28, y);
CGContextAddLineToPoint(ctx, 32, y);
CGContextStrokePath(ctx);
//CGContextClosePath(ctx);
}
CGContextMoveToPoint(ctx, 10, 420.0);
CGContextAddLineToPoint(ctx, 320, 420.0);
//CGContextAddLineToPoint(ctx, 320.0, 420.0);
//CGContextStrokePath(ctx);
for(float x = 60.0; x <= 260.0; x+=30)
{
CGContextSetRGBStrokeColor(ctx, 2.0, 2.0, 2.0, 1.0);
CGContextMoveToPoint(ctx, x, 418.0);
CGContextAddLineToPoint(ctx, x, 422.0);
CGContextStrokePath(ctx);
CGContextClosePath(ctx);
}
Run Code Online (Sandbox Code Playgroud)
我想在间隔附近的X和Y轴线上写动态文本(比如X轴表示每周的天数,Y轴表示每个部分的东西)?谢谢.
我想显示任何国家/地区的当前时间.假设我想了解美国在澳大利亚的当前时间,或者我想查看一下南非的英格兰当前时间,那么我如何获取当前的国家时间?为此,我写了一个代码,但我没有工作,
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
[dateFormatter setTimeStyle:NSDateFormatterFullStyle];
[dateFormatter setDateStyle:NSDateFormatterFullStyle];
NSDate *date = [NSDate date];
NSLocale *usLocale = [[NSLocale alloc] initWithLocaleIdentifier:@"en_US"];
[dateFormatter setLocale:usLocale];
Run Code Online (Sandbox Code Playgroud)
上面的代码没有给我正确的时间.
谢谢
我曾在谷歌日历工作过.现在我从这个链接下载示例代码:
"http://code.google.com/p/iphone-gcal/".
Run Code Online (Sandbox Code Playgroud)
但是在这段代码中,缺少一些Gdata代码.所以我已经实现了该代码,但我也得到了以下错误.请一些人帮我解决这个错误.
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_GDataDateTime", referenced from:
objc-class-ref in RootViewController.o
objc-class-ref in EditingViewController.o
"_OBJC_CLASS_$_GDataEntryCalendarEvent", referenced from:
objc-class-ref in EditingViewController.o
"_OBJC_CLASS_$_GDataQueryCalendar", referenced from:
objc-class-ref in RootViewController.o
"_OBJC_CLASS_$_GDataServiceGoogleCalendar", referenced from:
objc-class-ref in RootViewController.o
"_OBJC_CLASS_$_GDataWhen", referenced from:
objc-class-ref in RootViewController.o
objc-class-ref in EditingViewController.o
"_OBJC_CLASS_$_GDataWhere", referenced from:
objc-class-ref in EditingViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Run Code Online (Sandbox Code Playgroud) 我想在特定的timeInterval上自动向iphone发送一封电子邮件给发件人(硬编码的电子邮件ID).如何在不使用MFMailComposeViewController类的UI的情况下自动发送电子邮件?
谢谢.
我正在开发一个应用程序,其中我添加了一个控件UISearchBar.当我开始在UIsearchBar中编辑文本时,键盘会在屏幕上显示动画.完成我的完整编辑或取消所有文本后,我将坚持解雇键盘的点.如何在点击搜索键表格UIKeypad时关闭键盘?
UITextField和UITextView的问题也一样吗?
谢谢