I have an ObjC object defined as follows
@interface Fruit : NSObject
{
int fruitsinbranch[4];
}
@property (readonly) int fruitsinbranch[4];
@end
And then in the implementations I have the usual
@synthesize fruitsinbranch[4];
It does not work. What's the right way of doing it?
(And no, I am not asking for other ways to do stuff...
i have leftnavbutton and rightnav button now how to add search bar in between them
right now i am using this
self.tableView.tableHeaderView = searchBar;
but this bar goes up when you serach item downside so i want to make it at top always visible;
...
Hey everyone,
I'm a complete noob at objective-C, so this might be a very silly question to a lot of you.
Currently, I have a view with a 'SignIn' button, which when clicked, activates a sigupUp IBAction that I have defined below. Basically, this method needs to make a JSON call and get back some data about the user.
So, right now, my...
Hi,
I'm using UIView animation blocks to animate CALayer properties (backgroundColor in this case) on multiple layers on the display at once.
All layers are opaque, and I'm animating everything in one block, essentially like this
[UIView beginAnimations:@"outer" context:nil];
float duration = .25;
float offset = 0.0;
for( NSArray *vie...
Trying to update an fetched object and getting 'unrecognized selector sent to instance' error whenever I try and set any property on the object, here is my code:
NSFetchRequest *request = [[NSFetchRequest alloc]init];
NSEntityDescription *entities = [NSEntityDescription entityForName:@"PurchaseOrderItem" inManagedObjectContext:managedOb...
I'm making iphone program. The main function is playing video files, and recording sound.
OS 3.1.3 version is fine. But iPhone 4.0 makes problem!!
When I executed playing video (MPMoviePlayerController) and continuously recording sound (AVAudioRecorder), AVAudioRecorder doesn't work....
No recording..! ;o;
Somebody help!!
...
Where do I find the SKU number for my iphone app? Is it in xcode somewhere?
...
is it possible to change
1)rectable box to circular
2)add a png to alert box
3)any custom UI
...
When I usually get runtime errors I can open up the Debugger view in XCode and see what line it occurs and fix accordingly. What do I do when there is no line number? I must have an allocation/deallocation memory error somewhere, but how do I go about finding it? The instruments tool is virtually unuseable and slow - sometimes not loadin...
I need help with making a UIImageView float on the screen and when it hits the walls it bounces off like collision detection..
I havent gotten further than making the imageview. I need some help..
Any help? Thanks!
...
Hi All, This is kind of on the back of a previous question. Im currently throwing together a simple social networking iphone. For my question you can think of the application to be quite similar to the facebook iphone app.
It is based off the navigation template and the menu view is the top level view controller for my navigation contro...
When I try to push a view controller to my UINavigationController I get a NSInvalidArgumentException thrown with the error message "unrecognized selector sent to instance". But this only happens when I name my UINavigationController ivar anything other than "navigationController". Is there a reason for this?
...
Hello,
Is there any way i can get the path of the image on a particular person on the address book.? Im trying to copy the image on a person and load it into a table view. Im thinking it would be much faster if i just copy the path of the image instead and use the path on the table view.
...
UITouch *touch = [touches anyObject];
CGPoint p = [touch locationInView:self.view];
[pieMenu showInView:self.view atPoint:p];
...
Fisrt , sorry my bad English
I'd like to play audio on iPhone / iPod via dock connector
the model is audio in from dock to iPhone, and audio out from iPhone
is't possible
...
I am downloading images in table view cells as they scroll onto the screen. For UX reasons, I start downloading the images in - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath. I do not wait until the table view is done scrolling. When the table view cell is set, I start downloading i...
When i am select any row of navigation screen it is highlighted with Blue color. I want to keep this row selected with blue color when i am came to screen by back button. Mean when i am go to previous screen by back button, it should be indicated that which row is selected.
...
I'm having trouble keeping track of touches on the iPhone, sometimes touches gets "lost" due to some kind of hardware limitation. It can happen when the user is cluttering the device with more touches than it can handle.
This means the number of touches reported by touchesBegan does not necessarily equal the number of touches reported b...
Dear all,
When I set repeating background image to a UITableView by using the following code is ok:
tableView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"bg.png"]];
but when I use it to set repeating-background image to a UITableViewCell by following code, nothing happen, I don't know why, I also cannot set...
i am using a UITableview in a navigation based application in this way
UIView *containerView =
[[[UIView alloc]
initWithFrame:CGRectMake(0, 0, 300, 100)]
autorelease];
[self.view addSubview:containerView];
TableView.rowHeight=50;
Tableview.tableHeaderView=containerView;
then i navigate to the next page.But After clicking the bac...