Hey guys,
I have a pretty large list of 'items' (up to 250 entries) which is constantly changing. The list is being displayed in a UITableView.
I have a polling thread that will download some new entries and insert them into a SQLite DB.
When new entries have arrived, I call to my table view data source object to update its data set, ...
Hello All,
What event is fired when a view is removed from its super view? Do its sub-views receive any message?
For example, I have subview2 and subview3 added to subview1 as in
super_view -> subview1 -> subview2 -> subview3
if I remove subview1 e.g. by
[code]
[subview1 removeFromSuperview];
[/code]
What event its subviews(subview...
I have the following setup:
A tab bar app.
On one tab there is a navigation controller.
My workflow:
When I push a new viewController onto the navigation controller stack, I set the hidesBottomBarWhenPushed property.
This works great, the tab bar is "pushed" as the new view controller slides in place.
The problem:
When I pop this v...
I am currently trying to obtain the alpha value of a pixel in a UIImageView. I have obtained the CGImage from [UIImageView image] and created a RGBA byte array from this. Alpha is premultiplied.
CGImageRef image = uiImage.CGImage;
NSUInteger width = CGImageGetWidth(image);
NSUInteger height = CGImageGetHeight(image);
CGColorSpaceRef col...
Hello,
I have to calculate an angle beetween two UIImageView and i don't find how to get the UIImageViews coordinates(the four corners coordinates).
Is there a property for that?
thanks
...
I have this game where balloons are coming from bottom and player has to pop them by tapping before:
Time runs out
OR
10 balloons leave screen unpopped e.g. game over.
Every level is same , only thing changes is number of balloons.
For this i have the following view controllers:
MainLevelVC: The first one, to which the BaloonPopView...
I have been into cocos2d-iphone for ages, and today when i came back to uikit, i toally forgot how to create menu in uikit. UIButton isn;t really an option, a UILabel might sound good good.
What do you say?
...
Hi,
I have an UILabel with two lines. Sometimes it's text is short. Then the text gets displayed in the center (vertically) of the UILabel.
How do I align my text at the top (vertically)?
Regards...
...
I have multiple UIImageViews with userinteraction enabled. I am implementing touchesBegan, is there a way to guess which imageview was touched rather than making a rect based on all imageviews and check for the touch point existence in them?
I also have assigned different tags to each imageview.
...
I would like to implement the effect of a view sliding in, much like the animation of a view being brought in by presentModalViewController, but the view only slides in to cover half the screen.
I approached it this way:
1) Right before thew view should appear and slide in, addSubview the child view. Position it in such a way it's out...
I'm looking for tutorials on creating custom view transitions.
In particular, transitions that involve elements other than just the UIViews being affected, such as playing an animation over the transition as it is happening or modifying a screenshot of the UIView being transitioned out.
I don't mean implementing the basic set of transi...
Update
I have posted my solution to this problem as an answer below. It takes a different approach from my first revision.
Original Question
I previously asked a question on SO that I thought solved my issues:
http://stackoverflow.com/questions/998603/how-to-deal-with-non-visible-rows-during-row-deletion-uitableviews
However, I now...
Is there a quick way to position a ui control (such as bottom center or top center)? Right now I routinely set the frame of the UIcontrol or UIView subclass to position them but would like to know if I can avoid doing calculation just to centralize a control.
...
UIView has the concept of frame, bounds, center, and origin, and they all seem to be interrelated. Most of the time, I deal with frame when setting the position and size of a UIView (or subclass). I understand that the frame is using global coordinate system and the bounds is using coordinate of the local view (therefore it's x and y a...
I've been developing an iPhone app that uses a UIToolbar (in the context of a UINavigationController) to display a small status icon at the bottom of the screen. The toolbar will eventually also have action icons associated with it (think Mail application).
I'm running into an issue where it appears that each UIViewController pushed ont...
Hi, I'm using a UITableView to layout content 'pages'. I'm using the headers of the table view to layout certain images etc. and I'd prefer it if they didn't float but stayed static as they do when the style is set to UITableViewStyleGrouped.
Other then using UITableViewStyleGrouped, is there a way to do this? I'd like to avoid using gr...
I would like to use KVO in the following context:
1) In touchesBegan:withEvent: I alloc/init an instance of an object that I then observe via KVO
My intent is to observe varous behaviors of the object throughout its life time.
2) In touchesEnded:withEvent: I assign this instance to an NSMutableArray and release the instance reference ...
I have a requirement where I will move my finger in the circular motion on the iphone touch screen and i need the current angle parallely. I will apply this angle to my uiview and will rotate it. PLease, can anybody help.
Thanks in advance
...
I wonder if that's needed...who knows?
EDIT: Oh sorry ppl, I made a big mistake here. I want to develop for iPod touch users as well, and they are not likely upgrading so much to 3.0 like the privileged iPhone users do. So for that reason I want to keep developing for 2.2, but Apple is now forcing all developers to test on 3.0. But with...
Hey guys,
I've been looking into using the UIPageControl for a scrolling part of an application, and I was wondering how it works. The docs show methods for changing pages, setting the number of pages etc., but by itself the page control doesn't encompass any kind of scroll view.
Are the UIPageControl and UIScrollView classes supposed ...