Tag: 脉冲

何时需要重置iOS转换后的view.frame属性

我正在制作一个像Pulse新闻阅读器一样的水平表格视图。 我已经find了几个在线的例子,并使其工作,但我想知道什么时候我们需要在转换后设置view.frame属性。 我发现的例子重置了90度旋转后的垂直表视图单元内的水平表视图的框架 self.tableViewCell.horizontalTableView.transform = rotateTable; self.tableViewCell.horizontalTableView.frame = CGRectMake(0, 0, self.tableViewCell.horizontalTableView.frame.size.width, self.tableViewCell.horizontalTableView.frame.size.height); 更多上下文: – (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; TableViewCell *cell = (TableViewCell*)[self.tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { [[NSBundle mainBundle] loadNibNamed:@"TableViewCell" owner:self options:nil]; CGAffineTransform rotateTable = CGAffineTransformMakeRotation(-M_PI_2); self.tableViewCell.horizontalTableView.transform = rotateTable; self.tableViewCell.horizontalTableView.frame = CGRectMake(0, 0, self.tableViewCell.horizontalTableView.frame.size.width, self.tableViewCell.horizontalTableView.frame.size.height); self.tableViewCell.contentArray = […]

围绕Google地图标记iOS的脉冲环animation

我想添加一个脉冲环animation作为iOS谷歌地图中的当前用户位置(如Uber)。 我尝试通过addAnimation将CABasicAnimation添加到标记图层。 它不工作。 此外,我试图animation标记的规模,但规模的变化并没有发生。 有人可以帮我这个东西吗?