---
title: "切换Controller中的不同UIView且不会覆盖前面一个UI"
author: "caoyudong"
date: "2014-12-30T11:33:37Z"
tags: []
categories: ["移动开发"]
slug: "controller-uiview-ui"
draft: false
lastmod: "2014-12-30T11:33:37Z"
id: 2171130
url: "https://cydd.iteye.com/blog/2171130"
---

第一次进来的时候：
      1⃣️  m_imageViewGraphs = initWithImage:];
        ;

      2⃣️   m_axisUnit=initWithFrame:CGRectMake(2, 390, 20, 250) :m_difference :m_beginPrice];

      3⃣️m_showBar=initWithFrame:CGRectMake(15, 28, 70, 2)];
        ;


之后的切换：
      1⃣️  m_imageViewGraphs.image = ;
      2⃣️    m_axisUnit.firstLabel.text = ;
      3⃣️m_showBar.frame=CGRectMake(15+barPoint.x/3+3, 28, 70, 2);