在我更新到Xcode 4.2后,我无法再发布任何内容.当我开始键入"release"时,它会建议"释放",但是会有一条红线.
如果我写它仍然显示错误并显示以下两条消息:
'release'不可用:在自动引用计数模式下不可用自动引用计数禁止显式消息发送'release'
有谁知道我能做什么?
我想更改我的Xcode项目所在的文件夹名称.但是当我这样做时,我无法再构建我的项目了.它向我显示了2个错误:
自编译预编译头文件以来,Apple LLVM编译器3.0错误文件" 项目名称 -Prefix.pch"已被修改
有办法解决这个问题吗?
在我的应用程序中,我希望用户能够拍照或使用照片库中的照片.当用户点击按钮时,我弹出警报视图,用户可以选择拍摄新照片或照片库中的照片.这是我用过的代码:
- (void)PictureAlert:(id)sender {
UIAlertView *AlertDialog;
// Setting up AlertDialog.
AlertDialog = [[UIAlertView alloc] initWithTitle:nil
message:nil
delegate:self
cancelButtonTitle:@"Cancel"
otherButtonTitles:@"Choose From Library", @"Take New Picture", nil];
[AlertDialog show]; }
- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {
NSString *ButtonTitle = [alertView buttonTitleAtIndex:buttonIndex];
if ([ButtonTitle isEqualToString:@"Choose From Library"]) {
if ([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypePhotoLibrary]) {
// Pick photo.
UIImagePickerController *picker = [[UIImagePickerController alloc] init];
picker.delegate = self;
picker.allowsEditing = YES;
picker.sourceType = UIImagePickerControllerSourceTypeSavedPhotosAlbum;
[self presentModalViewController:picker animated:YES];
} else if (![UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypePhotoLibrary]) {
// Setting up AlertDialog.
UIAlertView …Run Code Online (Sandbox Code Playgroud) 我刚刚将Xcode更新到最新版本4.2.唯一的问题是,当我进入Interface Builder时,我无法在左侧的对象列表中更改我的对象名称.我曾经能够点击它们两次或标记一个,然后按Enter键进行更改.但那不再适用了.
任何想法,将不胜感激
谢谢你提前:)
我正在开展一个学校项目,我们必须创建一个虚拟智能手机,在计算机上运行.
我的问题是我需要在屏幕上创建一个键盘(就像在智能手机上一样),然后您可以通过单击鼠标来使用它.我可以创造每一个JButton,但这需要很长时间.所以我跳了起来,有人知道某种算法可以创建所有按钮并将它们正确地放在屏幕上.
先感谢您 :)
我需要从对象中删除一个动作,然后添加一个新动作.
我已使用此代码添加新操作:
[Button addTarget:self action:@selector(newAction:) forControlEvents:UIControlEventTouchUpInside];
Run Code Online (Sandbox Code Playgroud)
然后我尝试使用此代码删除旧操作:
[Button removeTarget:self action:@selector(oldAction:) forControlEvents:UIControlEventTouchUpInside];
Run Code Online (Sandbox Code Playgroud)
问题是它以某种方式也删除了newAction.
有任何想法吗?
提前致谢 :)
所以我在html5中有这个表单.文本区域从一开始就是空的,并且边框作为标记,但是当输入某些内容时,通过在css3中使用有效来假设边框消失.这是我的代码.
HTML5:
<div>
<label for="caption">caption</label>
<textarea type="text" name="caption" id="caption"></textarea>
</div>
Run Code Online (Sandbox Code Playgroud)
CSS3:
#caption {
float: right;
width: 450px;
height: 50;
border: 1px solid #D3D3D3;
resize: none;
font: 12px "lucida grande", tahoma, verdana, arial, sans-serif;
}
#caption:valid {
border: none;
}
Run Code Online (Sandbox Code Playgroud)
问题是伪类有效"激活",即使它是空的,奇怪的是,这不会发生在表单中的任何其他元素.
我希望有一个人可以帮助我.提前谢谢:)
objective-c ×2
xcode ×2
camera ×1
cocoa-touch ×1
css ×1
css3 ×1
eclipse ×1
html5 ×1
interface ×1
iphone ×1
java ×1
jframe ×1
jpanel ×1
object ×1
prefix ×1
project ×1
pseudo-class ×1
swing ×1
uibutton ×1
validation ×1