我正在使用TabBar应用程序.在一个视图中有一个UISearchBar,当按下时,键盘出现.
问题是键盘隐藏了标签栏.
你知道怎么解决吗?
在UItextView inputView上使用我的自定义阿拉伯语键盘,我用阿拉伯语文本填充我的textView但是无法将书面文本对齐到右边....需要帮助将文本对齐到右边.
-(BOOL)textViewShouldBeginEditing:(UITextView *)textView{
if(showCustomKeyboard==NO){
[textView resignFirstResponder];
textView.inputView=nil;
[textView becomeFirstResponder];
return YES;
}
else{
[textView resignFirstResponder];
if(customKeyboard==nil){
customKeyboard=[[CustomKeyboard alloc] initWithFrame:CGRectMake(0, 264, 320, 216)];
[customKeyboard setDelegate:self];
}
if([[UIApplication sharedApplication] respondsToSelector:@selector(inputView)]){
if (textView.inputView == nil) {
textView.inputView = customKeyboard;
[textView becomeFirstResponder];
}
}
self.customKeyboard.currentField=textView;
[textView becomeFirstResponder];
}
return YES;
}
Run Code Online (Sandbox Code Playgroud) 我正在制作一个iPhone应用程序,其要求是用户应该能够从iPhone应用程序发送SMS而无需进入SMS API屏幕(即SMS的模态视图).
我们不希望用户单击"发送"按钮.它应该自动发送.
邮件正文和邮件收件人已预先修复.
我是新手.
我怎样才能做到这一点?应该做什么?
请帮助和建议.
谢谢.
在我的iPhone应用程序中,我需要显示网站的超链接
如何在iPhone编程中为网站添加超链接?
其实我想通过Facebook API将我的应用程序链接传递到Facebook.
那么我应该如何格式化我的文本,使其在Facebook上作为超链接?
我仍然坚持这个问题.
在我的iPhone应用程序中,我正在访问Web服务器以获取数据.
这里我使用JSON从数据库中检索数据.
我收到一条警告:
NSString可能无法响应'-JSONValue'
怎么解决?
如何在iPhone的Core-Plot中的渐变散点图中更改负值的区域渐变颜色?
我想要渐变颜色如下:
正值为绿色
负值为红色.
我该怎么办?
我正在尝试将我的应用程序上传到商店.这不是第一次,所以我熟悉这个过程.
我已尝试通过Organizer(首选方法)和Application Loader,但两者都提供了模糊的错误消息.
我最近更新到Xcode 4试图解决它.我的归档项目可以很好地验证所有内容,但是在点击提交后不久,我收到一条错误消息:
上传到itunes商店时出错
但没有其他信息.所以我真的不知道会出现什么问题.我已经向苹果公司求助,但还没有.
可能有什么不对?
编辑:
我应该提一下,我的项目有2个目标,但我有两个配置文件,包括开发和分发,所以不明白为什么这会是一个问题.就我所知,这是该项目唯一不寻常的事情.苹果仍然没有任何消息......
谢谢!
迈克尔
我正在使用iphone模拟器4.2并尝试显示或NSLog标题和其他位置服务属性,例如纬度,经度,海拔高度,水平精度,垂直精度,速度.但它没有显示正确的参数和标题的标题实际上没有触发事件.作为其执行CLLocation代码
- (void)locationManager:(CLLocationManager *)manager
didUpdateToLocation:(CLLocation *)newLocation
fromLocation:(CLLocation *)oldLocation
{
[self.delegate locationUpdate:newLocation];
}
Run Code Online (Sandbox Code Playgroud)
而不是执行CLHeading代码
- (void)locationManager:(CLLocationManager *)manager didUpdateHeading:(CLHeading *)newHeading
{
[self.delegate headingUpdate:newHeading];
}
Run Code Online (Sandbox Code Playgroud)
当我在这两个代码上放置断点时,它从不接触CLHeading代码.我正在init中更新位置和标题.
- (id) init{
if (self!=nil) {
self.locationManager = [[[CLLocationManager alloc] init] autorelease];
self.locationManager.delegate = self;
self.locationManager.desiredAccuracy = kCLLocationAccuracyBest;
self.locationManager.distanceFilter = kCLDistanceFilterNone;
[self.locationManager startUpdatingLocation];
[self.locationManager startUpdatingHeading];
}
return self;
}
Run Code Online (Sandbox Code Playgroud)
问题是我不知道这是由于模拟器还是代码有问题?
请帮忙.
在我的iPhone应用程序中,当我点击我拥有的vCard时,我想将vCards保存到我的iPhone的联系人中.
我怎样才能做到这一点?
我在应用商店看到了一个应用商店的应用:
http://itunes.apple.com/us/app/read-vcard/id402216831?mt=8
谢谢
我从三个部分添加了一个名为"*.a"的库,并在我的XCode项目中添加了它的头文件.在我编译项目时,有许多"Apple Mach-O链接器错误".这里的错误信息:
"std::ios_base::failure::~failure()", referenced from:
"std::_List_node_base::unhook()", referenced from:
"std::string::find(char const*, unsigned long, unsigned long) const", referenced from:
"std::ios_base::failure::failure(std::string const&)", referenced from:
"std::_List_node_base::hook(std::_List_node_base*)", referenced from:
"std::invalid_argument::invalid_argument(std::string const&)", referenced from:
"std::runtime_error::runtime_error(std::string const&)", referenced from:
"std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(unsigned long, char, std::allocator<char> const&)", referenced from:
"std::string::assign(char const*, unsigned long)", referenced from:
"std::istream::operator>>(int&)", referenced from:
"vtable for std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >", referenced from:
"vtable for std::basic_istringstream<char, std::char_traits<char>, std::allocator<char> >", referenced from:
"std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::basic_ostringstream(std::_Ios_Openmode)", referenced from:
"vtable for std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >", referenced …Run Code Online (Sandbox Code Playgroud)