Hi all,
I am trying to scroll the picker view horizontally and this is my code.
in viewDidLoad I did this,
CGRect frame = horizontalPickerView.frame;
frame.size.width = 50;
frame.size.height = 216;
frame.origin.x=90;
frame.origin.y = 200;
horizontalPickerView.frame = fra...
Hi Everyone,
I have problem with this code, it's working on debug environment. On the instruments i'm seeing memory leak problem on this function, instruments is giving warning that
Category Event Type Timestamp Address Size Responsible Library Responsible Caller
27 SocialNetwork Malloc 00:19.951 0x3d64d20 80 Foundation -[NSKeyedUn...
Hey there,
I'm fairly new at this, but I think what I'm looking to do makes sense. I have a xib that is displayed in portrait and one that is displayed in landscape. Both views are similar, but have a few differences. Some of the buttons, labels and textfields are the same.
I can reveal one and hide the other when the orientation is...
iPhone page one is written.. as view based app, any simple "how to" to make a new page, and how to get a button to take me there?
Also looking for a "how to" make an info button/page to flip..
Anyone? Thx a lot :-)
...
After the user taps a tableview cell, I'd like to slide open a small view just below the cell . The first screenshot of these two apps show this:
Tweetie 2: http://itunes.apple.com/us/app/tweetie-2/id333903271?mt=8
Pastebot: http://itunes.apple.com/us/app/id344614116?mt=8
I know how to dynamically increase the height of a cell but th...
Hi guys - last resort this as I cannot for the life of me work it out!
I am setting a date when my app is closed (using applicationWillTerminate) in user defaults
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
NSDate *timeClosed = [[NSDate alloc] init];
[defaults setObject: timeClosed forKey:@"svdTimeClosedApp"];
t...
I'd like to assign a boolean value to a plist file entry. I'm doing the following:
NSString *aBool = realBoolValue ? @"YES" : @"NO";
[myplist setValue: aBool forKey:@"boolKey"];
[myplist writeToFile: [NSHomeDirectory() stringByAppendingPathComponent: plistFilePath] atomically:NO];
But the assignment never takes. I'm doing the ...
Hi everyone,
I am just curious how facebook for iPhone application can display a list of icons with the text, then all the icons shake to allow user to change the position of each item.
What kind of control is that, and is there some sample code that do the same thing?
I think it must be standard because it exists as well in home scre...
I have a UIScrollView which displays a series of images (paging enabled). I would like to provide a way to preview the next and the last visible image in the scrollview.
For example, if I have three images (A, B, and C) and image B is currently visible, then, on the right of image B I would like to see image C through some sort of semi...
What I Want: A border indicating if a UIButton is selected or not.
Background: I've got some UIButtons using transparent images, not text. These are toggle buttons (i.e. can be on or off).
Problem: The UIButton class gives users no indication of whether a button is selected or not unless you change something else about the button. Sinc...
When we have an image named Default.png, it will be shown at the loading of the app.
Can we have a button on this image so that, when we click the button only the app continues to the next page?
...
When we give the option Navigation Bar with prompt for a navigation bar, its height doubles with the items like titles and button being pushed into the bottom half. Is there a way that I can keep those at the top and add a label at the bottom part?
...
I would like to run some logic in my Controller class once all IBOutlets get assigned. What method do I need to override in the Controller class to receive this event?
Thanks,
Rui
...
Hi,
I've found many tutorials on switching views on the iPhone but none that quite match my needs. I wonder if you can help.
I'm looking to have an initial view, A and on a button press unload A and switch to view B.
I've seen the following, but I have reasons why I don't want to do it that way:
Using a navigation controller - Once v...
I need to draw a series of PNGs into a CG context so I can blend them together:
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextSetBlendMode (context, kCGBlendModeOverlay);
Currently I have my app working based on just drawing each image as a UIImageView and adding them as a subview to the view file via: [self addSubview...
I am trying to create a right triangle with a convex hypotenuse.
Start with a square
Cut off half of it diagonally such that what is left is a right triangle.
Curve the hypotenuse inwards
How would I achieve this with CoreGraphics? Should I inscribe an ellipse over half of the rectangle?
...
I have overridden the drawRect: in my UIView and I want to draw several tiles. I'm looping through them all and I have a separate function that draws each individual tile.
The way I'm doing it now is I pass the tile's calculated CGRect to the function. At the moment, any drawing methods have to include the x & y offsets of the rect pass...
I'd like to view the value of an NSUInteger at any given time. I assign the value below:
NSUInteger test = -1;
Then try to view it in the debugger:
(gdb) po test
Cannot access memory at address 0xffffffff
(gdb) p test
$1 = 4294967295
Current language: auto; currently objective-c
Far as I know, it is a value type. Where is -1?
...
I'm currently building a tabbed iPhone application where each tab's view controller is an instance of UINavigationController, and where every subcontroller of every one of the UINavigationController instances is an instance of UITableViewController. Ideally, I'd like to subclass UINavigationController so that the controller for each tab ...
When my app starts, I want to check whether the net connection is avaliable or not. And if not I want to show an alert message. How can I check it?
...