I've got a fairly complex view, for me anyway, that has a few "trays" with custom interface items on them. They slide in and out of my root view. I'd like to nest (addSubview) the items inside the view. Each needs some setup before being displayed...and none can be configured in IB (they're subclasses of UIView).
I'm wondering if it ma...
I have a line of UILabel text in a UIView which is regularly updated via NSTimer. This code is supposed to write a status item near the bottom of the screen every so often. The data comes from outside of its control.
My app runs out of memory really fast because it seems the UILabel is not being released. It seems that dealloc is never ...
I am having a problem with a UIView that when using a solid colour for the background, animates perfectly fine.
However when I set a background image for it's colour instead, the UIView animation doesn't work properly. It looks like a ghost outline of the page curl, but the UIView itself is 100% transparent (If that makes sense).
The i...
Does anyone know how to create a CGGradient that will fill my view,
my current code is this and it fill the UIView with a red rectangle I want to have a gradient (from black to gray for instance) instead of the rect :
- (void)drawRect:(CGRect)rect {
CGContextRef context=UIGraphicsGetCurrentContext();
CGRect r;
r.origin.x=00...
I would like to have the navigation bar hide more slowly than usual.
I tried the following, but when hiding, it disappears instantly instead of animating out (the view below does animate up correctly):
[UIView beginAnimations:@"hideNavBar" context:nil];
[UIView setAnimationDuration:2.0];
[self.navigationController setNavigationBarHidde...
Ok so i am realllly new to the iphone development and i've gotten pretty far for my knowledge. I just need help deciding how to program these 4-6 pictures into my project.
I basically want to make a comic book with the user being able to swipe from one picture to another. Should all these picture be in UIVIEW or UIViewController?
and...
Hi, I'm relatively new to objective-c...I'm using the iphone 3.0 SDK
I have a UIView, which is a subview, that I want to resize under certain circumstances.
The way I do it is within a controller class.
for example,
CGSize el = CGSizeMake(30, 40);
[self.subview setSize:el];
the above code does work, but the compiler gives a warning...
Hi, I have a question, I've design an app with UIButtons and below of it is an UIImageView. My problem was when I start my app the UIButtons get underneath on UIImageView. Here's my code for my UIButtons.
Code:
CALayer *touchedLayer = [myUIButton layer];
CABasicAnimation *wiggleAnimation = [CABasicAnimation animationWithKeyPath:@"trans...
how do i find that flip animation has finished animation?
i want to update a label's text just after animation has finished..
or how do i update a view during flip animation.?
...
I need to add a combo box or drop-down list to a UIView. I did not find such an object in the "Library" of the interface builder. How do I add this object to my UIVIEW? Do I have to inherit it from another object (which one?) or do I have to create it from scratch programmatically?
Please help !!!
...
I am trying to develop a small application. In it, I need to detect the color of a pixel within an UIView. I have a CGPoint defining the pixel I need. The colors of the UIView are changed using CoreAnimation.
I know there are some complex ways to extract color information from UIImages. However I couldn't find a solution for UIViews.
I...
I have a somewhat complex view that I put together in a separate (View-based template) project (the View Controller was represented with orange icon in MainWindow.xib). It's far enough along now that I've decided to move it into another project where it will be managed by a Navigation Controller. It is called from UINavigationController'...
Hi,
I am surely doing something completely stupid here, hopefully someone can tell me what! In summary I would like to programmatically toggle a subview when a button (I'll use a segmented button) is clicked. It need not animate. Ideally I'd load the contents of these views from a nib.
I am pushing a UIViewController subclass, initiali...
Hi,
I want to have 3d rotating cubes using openGL within a UIview created using a nib file. How do I do that?
For example, in the ADDMUSIC sample code by apple. I want to have a 3D cube on the view page with message 'your application here'. How do I merge opengl code in the sample code.
Any grandmaster here who can add a tweak of that ...
I am loading a number of UIViews onto a UIScrollView and am trying to track down why they are using so much memory. After a process of elimination using Instruments I have discovered that setting the background colour of the views increases memory usage by 4 times.
If I don't set the background colour the memory usage sits at around 4....
Hi All,
I'm farily new to iphone dev (<3 months on my free time) and I'm starting development of my second app.
From the image, I'm adding a number of UIViews as subviews to my main UIViewController.view, the number of Views to add varies based on user selectable data.
Each view contains several controls, a label, a UITextField and ...
Hi everyone,
Is it possible to serialize a UIView object? If yes how can I do that?
Thanks
...
I've made a test iPhone app to try and understand why I may be leaking memory in some other projects. I'm also a newbie when it comes to Obj-C/iPhone.
Basically the view controller creates 5 randomly colored boxes which are themselves sub-classed UIViews.
double-Clicking on any of these boxes fires off a notification to the view contro...
Hey guys,
I'm getting a strange error when committing a flip animation. These three bars show up, almost like strips that aren't being drawn too.
I got a screenshot to show what I'm talking about. These lines are always in the same place, and show up on both sides.
Here is the code that I'm using, I've used it before without problem...
I've got a UIView subclass (TraceView) which is 200 wide by 100 tall, and I'm attempting to draw on it pixel by pixel. In this case, I'm trying to draw a horizontal blue line that goes 75% of the way across. Instead, I get two vertical blue lines (one at the edge, one in the middle), that go 75% of the way up. It seems like the CGLaye...