Hi all,
I'm trying to make a little iPad tool's for drawing simple geometrical objects (rect, rounded rect, ellipse, star, ...).
My goal is to make something very close to Keynote (drawing feature), i.e. let the user add a rect (for instance), resizing it and moving it. I want too the user can select many objects and move them together....
Perhaps there's a better way to set this up so I'm open to suggestions.
But here's what I'm doing. I have a main UIView. On top of that I have a UIImageView and another UIView. When the UIImageView changes, I want to change the second UIView. So I have a class for it and the IB object's type is set to the class. In the .m of that class...
My iPad app does not do what I expect it to when launching and rotating views.
AppDelegate has
mainController.view as a sub-view
and mainController has splashController.view as a sub-view
mainController responds to willAnimateRotationToInterfaceOrientation by calling it's sub-view controller method of the same name (and then the super ...
Hi all. Can anyone give a definitive explanation on the relationship between UIView's setNeedsLayout, layoutIfNeeded and layoutSubviews methods? And an example implementation where all three would be used. Thanks.
What gets me confused is that if I send my custom view a setNeedsLayout message the very next thing it invokes after this me...
Hi, I'm creating an image from a view whith the folowing code :
UIGraphicsBeginImageContext(myView.bounds.size);
[myView.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
UIImageWriteToSavedPhotosAlbum(viewImage, nil, nil, nil);
The...
I would like apply a 3D rotation on a view (in particular to a UILabel) in iPhone. What's the simplest way to do this?
A code example will be much appreciated.
...
I am no graphics expert but I somehow managed to make some good looking custom grouped UITableViewCells by setting the background view to a backgroundView with some CG code. In all SDK's up to 3.1.3 (maybe 3.2... I haven't tested on the iPad) this was working great, but I think a more recent SDK has introduced a change in the way graphic...
Just like title.
How to prevent it?
...
Hello,
I added a UITableView as a subview to a custom UIView class I'm working on. However I noticed that whenever I scroll the table it calls my classes layoutSubviews. I'm pretty sure its the UIScrollview that the table is inheriting from which is actually doing this but wanted to know if there is a way to disable this functionality ...
Hi people,
how do you add an overlay view that goes over everything. eg over a tab bar controller, and a navigation controller?
thanks
...
I have a custom UIView called TiledImage which has a single property named tiledImage and a custom drawRect method. I add this view to my ViewController, but when the ViewController is deallocated the dealloc for this view is never being called, even though I am releasing the view and setting it to nil. What could be causing this? I don'...
Hi All,
I have set my status bar hidden in my Application.
[application setStatusBarHidden:YES];
I have added an UIView on the window as a subview at 0,0,320,40. But I am not able to get touches on my View ?
But if i am changing the 'Y' position like 0,30,320,40 its working fine.
What is the problem ???
Thanks
...
Hi,
Is it possible to find the size, in memory, of a UIView (or any object for that matter) programmatically?
Thanks!
...
The CALayer shadow properties like shadowOffset, shadowRadius, shadowColor are not available in iPhone OS versions below 3.2 and I'm wondering how I could mimic that functionality for use with 3.1 and below.
I want to use this to be able to add drop shadows to UIViews in a clean way so that the shadows are drawn at layer level somehow, ...
I've created a UIImagePicker / camera view, with a toolbar and custom button for taking a snapshot. I can't really change to using the default way because of the custom button, and I'm drawing on top of the view.
When you hit the button, I want to take a screenshot using UIGetScreenImage(); however, the toolbar is showing up in the imag...
When the return button on the keyboard for a textfield is tapped I want to add a UIView, then connect to a website with NSURlConnection sendsynchronousrequest and I have the code in that order
But when I run in the simulator (I can't run on device) the connection is run first then the subview is added (ie the opposite of the order of the...
Note: this happens prior to any of the UITextFields being pressed (e.g. the keyboard hasn't yet appeared in the View)
I've created a simple view with 3 fields 1 of which appears above where the keyboard would appear, and 2 which appear below.
Loading it into a ViewController works fine until I come to try to click on the 2 UITextFields...
I'm trying to recreate the behaviour of the photos app, where you can pan, pinch and rotate simultaneously. I have the basics working, but I'm stuck on something.
For the pan, I offset the centrepoint of the view by the translation amount. This is working well.
For the pinch and rotate I'm applying an affine transform to the view. This...
Hello all,
I'm working on an app that has two sections, a config section and a results section. My config section needs to be 2 separate views (horizontal and vert, and yes, I can hear the intake of breath from here), with one rotatable view for the results. b/c of layout restraints and a lot of pain around rotation, I'm not using a n...
Hi everyone,
I have a tabBarController set up in the AppDelegate and have a few UIViewControllers with Nav Controllers. In one of the TabBar items, after I have pushed a few UIViews I want to update the badgeValue item of a different TabBar item.
Whats the best way to do this? The only way I can really think is a NSNotification and a s...