Esempio n. 1
0
        public void CommonInit()
        {
            // Create the text view and add it as a subview. We keep a weak reference
            // to that view afterwards for laying out the segment layers.
            text = new GraphTextView(new CGRect(0.0f, 0.0f, 32.0f, 112.0f));
            AddSubview(text);

            // Create a mutable array to store segments, which is required by -addSegment
            segments = new List <GraphViewSegment> ();

            // Create a new current segment, which is required by -addX:y:z and other methods.
            // This is also a weak reference (we assume that the 'segments' array will keep the strong reference).
            current = AddSegment();
        }
Esempio n. 2
0
		public void CommonInit ()
		{
			// Create the text view and add it as a subview. We keep a weak reference
			// to that view afterwards for laying out the segment layers.
			text = new GraphTextView (new CGRect (0.0f, 0.0f, 32.0f, 112.0f));
			AddSubview (text);

			// Create a mutable array to store segments, which is required by -addSegment
			segments = new List<GraphViewSegment> ();

			// Create a new current segment, which is required by -addX:y:z and other methods.
			// This is also a weak reference (we assume that the 'segments' array will keep the strong reference).
			current = AddSegment ();
		}