UIWebView(iOS 5.0)没有显示红色波浪形拼写更正下划线:
id html= @"<div spellcheck=\"true\" contenteditable=\"true\"></div>"
[webView loadHTMLString:html baseURL:nil];
Run Code Online (Sandbox Code Playgroud)
有可能得到它们吗?
我有UIViewController一个UITableView在里面.tableview具有自定义单元格,其中包含文本字段.文本字段的代理设置为该类.
在编辑textfield(textFieldDidBeginEditing)时,我有一个下拉(UIView其中有一个tableview).下拉列表以编程方式创建.我面临的问题是,didSelectRowAtIndexPath没有调用dropdown tableview.我正确地将委托,数据源设置为类.我也删除了所有其他手势.我已确保tableview未处于编辑模式.
在下拉列表中单元格的单击,唯一有效的是我的background tableview的textfield的委托方法.
//UITableView class(with textfield from where dropdown is loaded.)
- (void)textFieldDidBeginEditing:(UITextField *)textField{
if(textField.tag == 3){
if(dropDown == nil) {
CGFloat f = 200;
dropDown = [[SFTextFieldDropDown alloc] showDropDownWithSender:textField withHeight:f andElements:self.list];
dropDown.delegate = self;
}
}
}
// Custom Drop down class.
- (id)showDropDownWithSender:(UITextField *)senderTextField withHeight:(CGFloat)height andElements:(NSArray *)array{
table = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, btn.size.width, 0)];
table.delegate = self;
table.dataSource = self;
table.layer.cornerRadius = 5;
table.backgroundColor = …Run Code Online (Sandbox Code Playgroud) 我正在尝试自定义ABPeoplePickerNavigationController的导航栏,通过添加自定义UIBarButtonItem作为UINavigationController顶视图控制器的左右barbuttonitem .此功能在iOS7和以前的版本中运行良好,但在iOS 8中没有.
- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated{
navigationController.topViewController.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAdd target:self action:@selector(addNewContact:)];
navigationController.topViewController.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemCancel target:self action:@selector(cancel:)];
}
Run Code Online (Sandbox Code Playgroud)
上面的代码正在执行,但它没有任何效果.PeoplePickerNavigationController显示其默认导航栏,其默认项为"组"和"取消"按钮.
iOS 8有什么变化?我需要重新实施,我已经做了什么?
编辑:我在导航堆栈中记录了顶部的ViewController.它被称为CNContactPicker.
我需要使用MKCircle在MkMapView上绘制一个半径为1.23米的圆.我将如何在地图上显示.我使用以下,
r = 1.23;// in metres.
circle = [MKCircle circleWithCenterCoordinate:location radius:r];
Run Code Online (Sandbox Code Playgroud)
但是当我在地图上绘制时,它在MKMapView上看起来超过1公里.请问有人可以告诉我如何在地图上代表一个半径为1.23米的圆圈?
这主要是为了显示位置的准确性,因此半径表示位置的准确性.
我正在尝试做半页卷曲功能.这是我正在使用的代码:
#import <QuartzCore/QuartzCore.h>
CATransition *animation = [CATransition animation];
[animation setDelegate:self];
[animation setDuration:1.0f];
[animation setTimingFunction:UIViewAnimationCurveEaseInOut];
[animation setType:(notCurled ? @"mapCurl" : @"mapUnCurl")];
[animation setRemovedOnCompletion:NO];
[animation setFillMode: @"extended"];
[animation setRemovedOnCompletion: NO];
notCurled = !notCurled;
Run Code Online (Sandbox Code Playgroud)
但是我遇到了以下错误
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_CATransition", referenced from:
objc-class-ref in MyMapViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
"_OBJC_CLASS_$_CATransition", referenced from:
objc-class-ref in SJMapViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker …Run Code Online (Sandbox Code Playgroud) 我使用以下代码在C#中创建一个公共静态数组
public class A{
public static array[] obj;
}
Run Code Online (Sandbox Code Playgroud)
我有另一个类B.从类BI调用
A.ArrayName,我得到我在类A中使用的数组.
我想知道,在目标C中,这相当于什么
我有一个标题字符串为"DO:这些任务"的UIActionSheet.在标题字符串中,子字符串"DO:"应该是粗体(具有特定的字体大小),子字符串"这些任务"应该是常规的.可能吗?我怎样才能做到这一点?
装载时我发生了一次特殊的撞击事故MKMapView.出现的模式是我在一个视图中打开ABPeoplePickerNavigationController,然后触发UINavigationController委托方法
在保存/没有保存后,我移动到另一个视图 - 它工作正常.下一个观点 - 它的工作正常.但是当我进入视图时MKMapView,它会崩溃.
没有其他观点有任何问题.只有MKMapView使用以下日志加载崩溃的视图
*** -[UINavigationBar barStyle]: message sent to deallocated instance
Run Code Online (Sandbox Code Playgroud)
我已经在代码中注释了加载mapview的部分,然后它工作正常.因此,当mapview加载时,我的导航栏似乎已在某处解除分配.但我无法理解的是,应用程序中没有其他视图有任何问题,只有mapview崩溃的那个.我尝试了不同的测试模式,并确保其他任何视图都没有任何问题.
该应用程序不会在模拟器中崩溃.它只在设备上崩溃.为什么此问题仅出现在加载mapview的视图中,而不是其他视图中.
我试过分析来分析我的问题.这是我发现的,但它没有多大帮助.

ios ×8
iphone ×7
objective-c ×4
mkmapview ×2
arrays ×1
catransition ×1
cocoa ×1
font-size ×1
ios4 ×1
ios7 ×1
ios8 ×1
nsstring ×1
page-curl ×1
static ×1
uitableview ×1
uiwebview ×1
whitespace ×1