小编use*_*294的帖子

动画UIView过渡,如扩展点到圆圈

在我的iPhone应用程序中,我需要实现不同类型的过渡.

那是

从当前视图打开下一个视图,

它的状态像一个点,并且点像圆圈一样缓慢地扩展,在圆圈中,下一个视图将部分地显示在圆圈的一部分中,最后圆圈完全展开,下一个视图完全出现.

我搜索了许多转换,比如CATransitions,以及cocoa控制器上的一些动画,但我没有找到这种类型的转换,任何人都可以帮助我.

在此输入图像描述在此输入图像描述在此输入图像描述在此输入图像描述

iphone objective-c uiview uiviewanimationtransition ios

9
推荐指数
1
解决办法
2672
查看次数

如何在GMSMapView上设置自定义注释标记(围绕点的动画环)

使用谷歌地图iOS SDK我已经实现了mapView,我已经创建了如下标记

// Creates a marker in the center of the map.
GMSMarker *marker = [[GMSMarker alloc] init];
marker.position = CLLocationCoordinate2DMake(-33.86, 151.20);
marker.title = @"Sydney";
marker.snippet = @"Australia";

marker.icon = [UIImage imageNamed:@"point1.png"]; 

marker.map = mapView_;
Run Code Online (Sandbox Code Playgroud)

但我需要显示动画图像,即要显示的一些图像序列,一个点周围的动画环,而不是原始的GMSMarker

图像序列是point1.png point2.png point3.png point4.png point5.png

任何人都可以帮助我实现这一目标

google-maps objective-c mapkit ios google-maps-sdk-ios

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

无法打开文档".xib".无法读取存档

我在过去4个月里使用过xcode 4.6.

到目前为止,所有应用都运行正常.

现在我收到了一些新的应用程序源代码,用于一些更改.

什么时候我执行应用程序.我显示的错误是

The document "DetailTransactionPage.xib" could not be opened. Could not read archive.

Please use a newer version of Xcode. Consider changing the document's Development Target to preserve compatibility

任何界面构建器都无法打开.

我试图用4.5.2,4.3.3打开但没有用.

在此输入图像描述

iphone xcode objective-c xib ios

6
推荐指数
2
解决办法
5242
查看次数

当addsview由addsubView呈现时,UIButton不工作

我已将另一个视图控制器添加到viewcontroller视图,

addsubview工作正常,但下一个视图中的按钮操作无效.

崩溃时出错[ModelViewController performSelector:withObject:withObject:]:消息发送到解除分配的实例0xa81d960

在View1:当前视图控制器UsersViewController类中

-(IBAction)openModelView:(id)sender
{
   ModelViewController *modelView= [self.storyboard instantiateViewControllerWithIdentifier:@"ModelViewController"];

    [self.view addSubview:modelView.view];
}
Run Code Online (Sandbox Code Playgroud)

在View 2 ModelViewController类中

-(IBAction)dismissModelView:(id)sender
{
    NSLog(@"ddddddde");
    //[self.view removeFromSuperview];
    [self.view removeFromSuperview];
}
Run Code Online (Sandbox Code Playgroud)

使用presentViewConroller [self presentViewController:modelView animated:NO completion:nil]*工作得很好*,

我需要在背景中显示第一个视图,部分透明

iphone objective-c uiviewcontroller addsubview presentmodalviewcontroller

4
推荐指数
1
解决办法
1811
查看次数

在iOS 7中为uinavigation bar设置色调颜色,而不包括内部按钮项目

我尝试在iOS 7中使用导航栏颜色设置为黑色

[self.navigationController.navigationBar setTintColor:[UIColor blackColor]];
Run Code Online (Sandbox Code Playgroud)

用这个不起作用

但有些时候有效但所有其他条形按钮都保持黑色,这导致无法看到条形按钮

iphone objective-c ios7 xcode5

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

如何根据宽度有限的文本更改UILabel大小

目前我的标签默认宽度为100像素.

标签上的文字动态变化

我的要求是

标签大小应根据文本更改,其宽度应限制为300像素.

在300像素之后,文本转到下一行,并且标签的高度必须增加.

如何实现这种情况..

self.messageLabel = [[UILabel alloc] init];

self.messageLabel.frame = CGRectMake(0, 0, 100, 20);

self.messageLabel.textAlignment = NSTextAlignmentCenter;
self.messageLabel.font = [UIFont boldSystemFontOfSize:16];

messageLabel.numberOfLines = 0;
messageLabel.lineBreakMode = NSLineBreakByWordWrapping;

[self.view addSubview:messageLabel];
Run Code Online (Sandbox Code Playgroud)

获取文字大小:

CGSize labelSize = [self.messageLabel.text sizeWithFont:self.messageLabel.font];

我可以根据文字更改标签的宽度

self.messageLabel.frame = CGRectMake(0, 0, self.frame.size.width-10, 20);

但是如何在每300个像素之后将文本移动到下一行

标签尺寸也增加了.

iphone objective-c uitextview uilabel

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