I have a problem in my application. Any help will be greatly appreciated. Basically it is from view A to view B, and then come back from view B.
In the view A, it has dynamic data loaded in from the database, and display on the table view. In this page, it also has the edit button, not on the navigation bar. When user tabs the edit b...
Hello.
I'm having problems setting the alpha value of a UIView subclass object. Any suggestions?
I have UIView project whose alpha property I'm manipulating to control brightness. I'm using a UISlider control to set the value of the alpha property in a UIView subclass as follows:
-(id)initWithFrame:(CGRect)rect andParent:(id)thePare...
I am trying to get an array from a plist as suggested on an answer here but it's not working. Can someone tell me what I'm missing?
Here is what the plist looks like....another weird thing is that I can't get this to open in a plain text file?? when I do it looks like garbage.....but it looks fine in the property list editor:
<?xml ver...
I would like to implement a view (it will actually be going into the footer of a UITableView) that implements 1-3 buttons. I would like the layout of these buttons (and the size of the buttons themselves) to change depending on which ones are showing. An example of almost the exact behavior I would want is at the bottom of the Info scree...
I've successfully added some UIButtons to a custom tableFooterView. The problem is that the button events does not get called. Also, the image relative to the UIControlStateHighlighted doesn't come up. Any ideas?
I've tried all I could think of, but I can't find the trick. I'm reporting here the interesting part of the UITableViewContr...
The voodoo involved in iPhone development never ceases to amaze me. Here's the latest hex that has been cast upon me.
I am developing an app that uses the routeMe library to display maps. I'm testing things in the simulator and everything works great. The app also uses the GPS features on the iPhone so I decide to plug it into the de...
I am trying to make a UIButton that grows when pressed. Currently i have the following code in my button's down event (courtesy of Tim's answer):
#define button_grow_amount 1.2
CGRect currentFrame = button.frame;
CGRect newFrame = CGRectMake(currentFrame.origin.x - currentFrame.size.width / button_grow_amount,
currentFrame.o...
I have a tableivew with a bunch of cells and I am trying to get the uilabel to display more than 3 lines. I set the linebreakmode and the numberoflines appropriately, but it's still not displaying more than three lines. Any suggestions? The table cell automatically adjusts its height to accomodate the number of chars/lines, but the text ...
Hello all,
I have multiple views in my application with respective view controllers. What I am doing is as follows.
Here is the more illustrative code:
- (void)applicationDidFinishLaunching:(UIApplication *)application
{
View1Controller *viewController1 = [[View1Controller alloc] initWithnibName:@"View1"];
View2Controller *viewC...
I currently have 1 UIView where I do custom drawing. I want to overlay that view with another view which has a few controls (label, button, etc). This overlayed view will be transparent so you can see the drawing view.
2 Questions:
1) Should I make the drawing view a sibling or child of the overlay view?
2) If its a child, do touch eve...
I'm not sure, but maybe there's a way to determine the finger pressure on the iPhone screen? I know it has no pressure sensors, but it could be somehow calculated from the touch "footprint", if it was accessible in some way.
...
Everything is working fine until I call the saveFile method (shown below) to write the file back to disk, where it crashes. What am I doing wrong?
This is part of my viewDidLoad method where I open the file, which works fine.
//Get The Path
[self initPath];
dictionary = [[NSMutableDictionary alloc] initWithContentsOfFile:accountsFileP...
Essentially I'd like to know just host compatible are the iPhone and the iPod Touch. I would like to know if I could buy an iPod Touch (and thus save some cash) and develop iPhone apps on it or if I really should spend the extra money and put up with AT&T and get the iPhone.
What exactly is different between the two devices (other than ...
In particular, I am adding a compass to my app.
I want to place an arrow that rotates on top of a circular compass background. If you could link me to anything that describes stacking/superimposing images, I'd be grateful.
I couldn't seem to find much via Google.
...
MVC/OOP design patterns say you don't set a property, per se, you ask an object to set its property. Similarly, in Cocoa you don't tell an object when to draw itself. Your object's code has detailed HOW it will draw itself so we trust the frameworks to decide when (for the most part) it should draw.
But, when it comes to animation in C...
It's not clear, to me anyway, if a UIView is automatically released from its superview if you use addSubview to add it to another view?!? I know a view can only have ONE superview but I'm not clear about how, exactly, to go about moving a subview from one superview to another.
retain view, release (from old superview), addSubview to new...
Does anyone know how I should go about storing a UIImage with the version of ObjectiveRecord packaged with ObjectiveSync? (Note that the version of SQLPersistantObjects in ObjectiveRecord is older than the current version) At the moment, I am attempting to store the UIImage data as NSData:
@interface Picture : SQLitePersistentObject {
N...
This may seem like a stupid question, but what message do i send to the NSSet class to determine how many times a particular control has been tapped?
...
I need to do a network ping in an iPhone app, but NSHost is an unsupported framework for iPhone OS. Does anybody know of other tools or techniques to achive similar functionality?
...
I give it 0 and 400 and it returns me sometimes values above 400. That doesn't make sense.
- (float)randomValueBetween:(float)low andValue:(float)high {
return (((float) arc4random() / RAND_MAX) * (high - low)) + low;
}
that's actually a snippet I found on the net. Maybe someone can see the bug in there?
...