Hi all,
I'm having some problems with UIImageView animations. I've created three NSArray objects containing the images and created three methods that take a UIImageView and assigns the new animations to it. It works fantastic calling one of the three methods the first time but doing it another time crashes the simulator and device. Any I...
Hello. How do you set @synthesize for an array like: float rgb[3]. Also, is the @property line: @property(nonatomic, assign) float rgb?? Thanks
...
I'm working with the Xcode Utility template. In rootViewController.m there's a section that sets up the navbar for what's called the FlipSideView:
(snip)
UINavigationItem *navigationItem = [[UINavigationItem alloc] initWithTitle:@"Title"];
(snip)
How can you programatically change the navbar title from within the FlipsideViewControl...
Hi,
I'm new to Obj-c programing, and wonder how find a performance bottenecj.
I have a UITable that load chunks of 50 objects from a sqlite database.
Then, when the user scroll, I load the next 50 objects until finish.
However, I find that the scrolling stop for a seconds. I wanna know why.
I don't think that 50 objects is that muc...
I wonder if every developer would have to code statistic visualization by him/herself, or if there's a lib already that can be used to draw charts, curves, stats, etc. (like in the stock app for example)?
...
Hi, I am trying to add subviews to my UITableView cells.
It works just perfect for me, but the text appears at the very left edge of a cell. How can I move it a little bit to the right side? I want to have a little margin from the left cell border.
Thank you in advance.
...
I have an NSDate that I get from a UIDatepicker.
IBOutlet UIDatePicker *dueDate;
NSDate *selectedDate = [dueDate date];
how do I retrieve the month from dueDate in the form of an int? (1 for Jan, 2 for Feb, etc)
...
As I understand, Pickers have an Delegate class. Why's there an additional Datasource needed?
...
How can I force a UIScrollView in which paging and scrolling are on to move vertically or horizontally only?
My understanding is that the directionalLockEnabled property should achieve this, but a diagonal swipe still causes the view to scroll diagonally instead of restricting motion to a single axis.
Edit: to be clearer, I'd like to a...
I am attempting to analyze an iPhone application using the Leaks application and everything appears to be working fine, except for when I try to view detailed information about a particular memory leak. Leaks does not appear to be loading my source code. Looking at the stack view on the right, I can see calls that reference iPhone frame...
Is there a way of clearing all test fields when selecting a text field to enter text with the keyboard.
For instance if you had a tip calculator that you have already run once, and all the fields are now populated.
Now when you want to run another calculation, you click on the text field an all the other fields are automatically cleare...
Hello,
My application has buttons in a Tab bar.
When I touch a button I load a nib, add the view and remove other view from the stack and release it.
The problem is one of my view controller is using an object which get xml data from NSURLConnection, parse them and send them to the view controller in order to display them. It works, ...
I have a custom view that's not getting layoutSubview messages during animation.
I have a view that fills the screen. It has a custom subview at the bottom of the screen that correctly resizes in IB if I change the height of the nav bar. layoutSubviews is called when the view is created, but never again. My subviews are correctly laid o...
Hello,
Do you know some documentation about the UIViewController management ?
I am thinking about : how release is done, what happens to subviews manually allocated, best way to release it, release when mempry warning, ...
Thanks for all your help.
I found this article :
http://furbo.org/2008/08/27/dealing-with-memory-loss-the-cleanu...
Basically, I draw a 3D cube, I can spin it around but I want to be able to touch it and know where on my cube's surface the user touched.
I'm using for setting up, generating and spinning. Its based on the Molecules code and NeHe tutorial #5.
Any help, links, tutorials and code would be greatly appreciated. I have lots of development...
my .h file is as follows
#import <Foundation/Foundation.h>
@interface MyClass : NSObject {
}
- (void) addWidget: (Widget*)aWidget;
@end
For sake of example, Widget is just some simple class that only holds a couple of strings. Apparently, either i'm doing something wrong or am just spoiled by Java / C# because when I try building, t...
How do I change the view to be horizontal. I do not want it to switch when the iphone is turned on its side, I want it to be permanently horizontal. Thanks!
...
I have a UITextView added on my UIView. The textview added is not editable, it is just to display some data. The data displayed in the textview is dynamic. Thats is the number of lines is not fixed. It may vary. So if the number of line increases, the size of the textview also needs to be increased. I have no clue how to do this. Please ...
Considering the code:
soundFilePath = [[NSBundle mainBundle] pathForResource: @"Sound" ofType: @"wav"];
fileURL = [[NSURL alloc] initFileURLWithPath: soundFilePath];
avPlayerNextLevel = [[AVAudioPlayer alloc] initWithContentsOfURL: fileURL error: nil];
avPlayerNextLevel1.volume = volume ;
[soundFilePath release];
[fileURL relea...
Hi, I changed something in my cocoa-touch application and all interface went down for something like 20 pixels. And at one view there is a white bar at the top (it has no background color, although view itself has one). And in the interface builder nothing changed - everything looks as it should look.
Anyone has an idea why could this h...