iphone

How to synthesize getter and setter for C-array on obj-c

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...

add serach bar into nav bar for iphone

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; ...

iPhone Objective-C: combining methods together.

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...

reasonable expectations for CALayer number of property animations concurrently?

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...

updating fetched object results in 'unrecognized selector sent to instance' error

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...

iPhone 4.0 problem.. MPMoviePlayerViewController , AVAudio APIs

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 is the SKU Number Iphone App

Where do I find the SKU number for my iphone app? Is it in xcode somewhere? ...

how to add a png to UIAlert button for iphone

is it possible to change 1)rectable box to circular 2)add a png to alert box 3)any custom UI ...

iPhone dev - objc_msgSend with no specific line number

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...

Cocoa Touch - Floating Image bouncing across screen

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! ...

iphone RootViewController Login or Menu

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...

Is there a naming convention for a navigation controller?

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? ...

addressbook image query

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. ...

how to write touch events for button on iphone

UITouch *touch = [touches anyObject]; CGPoint p = [touch locationInView:self.view]; [pieMenu showInView:self.view atPoint:p]; ...

Does iPhone support audio in via dock connector

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 ...

Does NSURLConnection Block the Main/UI Thread

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...

How to Keep previous row selected in iPhone ?

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. ...

Any way to detect if nothing is touching the iPhone screen?

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...

[IPhone] how to set repeating-background image to UITableCell

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...

UITableview scrolls down on its own??

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...