objective-c

UIView Animation Misbehaves when iPad orientation is changed

I am using this code for UIView transition effect [UIView beginAnimations: nil context: nil]; [UIView setAnimationDuration:1.0]; [UIView setAnimationBeginsFromCurrentState:YES]; [UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:self.view cache:YES]; [UIView commitAnimations]; Now the problem is that when i rotated...

[self navigationController] returning null inside tableview delegate

HI I am working on UITablview based project. i like to load a new view when ever a cell got click. i am using following code in didselectRowAtIndexPath delegate method. The below coding is not showing any error but new view not get load and [self navigationController] is returning null. inside Viewdidload function [self navigationcontr...

Sample code to get Siphon application in iphone sdk?

Hi Guy's Does anyone have the link for the sorce code of Siphon application to use SIP(VoIP) in my application. Anyone's help will be much appreciated. Thanks to all, Monish. ...

Getting a table to redraw

Hi guys, I have a view which is a big table. This table is populated from my array of data. This is all working well. The table drawing perfect. I pop up another small overlay view where you can set some filters. The filter does its thing and the array of data that gets changed and the array changes in size so that there is more or les...

Custom activity indicator popup

Hi, This may be a simple question but i would like some help to find out how to make it. I want to make a custom "loading" popup for my ipad app. Just like this app: http://www.youtube.com/watch?v=ZY31Bn5slv0 you see the black loading popup at +- 30sec,40sec,56sec,... I remember that i had a sample of this, but can't find it back. C...

NSString is not appearing properly

I have the following NSString: NSString* searchURL = [NSString stringWithFormat:@"http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.quotes%20where%20symbol%20in%20(%22%@%22)%0A%09%09&format=json&env=http%3A%2F%2Fdatatables.org%2Falltables.env&callback=",symbol]; NSLog(@"URL IS: %@", searchURL...

objective C get Decimal from Json object.

I am trying to parse a json value to a decimal with no success. I am using the following framework http://code.google.com/p/json-framework/ and my code is as follows NSDecimal RRP = [[jProduct objectForKey:@"Price"] decimalValue]; NSLog(@"%@", RRP); I get Program received signal: “EXC_BAD_ACCESS”. Just to test I thought I would t...

Will this code leak memory?

I am calling in applicationDidFinishLaunching: [self performSelectorInBackground:@selector(performReachabilityCheck) withObject:nil]; Here is the performReachabilityCheck -(void)performReachabilityCheck{ internetReach = [[Reachability reachabilityForInternetConnection] retain]; [internetReach startNotifer]; [self updateInt...

NSZombieEnabled won't turn off

I have NSZombieEnabled to NO in my arguments. I am checking to see if it is enabled: if(getenv("NSZombieEnabled") || getenv("NSAutoreleaseFreedObjectCheckEnabled")) { NSLog(@"NSZombieEnabled/NSAutoreleaseFreedObjectCheckEnabled enabled!"); } My debugger says it is still enabled. Why? ...

Deselecting the table view row when returning

I followed Luke Redpath's suggestion here - http://stackoverflow.com/questions/2803061/selected-uitableviewcell-staying-blue-when-selected - to deselect the row when returning to the original table view, but I can't get it working. In fact the method doesn't get triggered. - (void)viewDidAppear:(BOOL)animated { [super viewDidAppear:an...

How to update NSTableView without using -reloadData?

I am new to the Mac. I am trying to update a particular cell in NSTableView without using -reloadData, as -reloadData updates the whole table. I have tried everything but all was in vain. I am trying to do something similar to what we used to do in CListCtrl in MFC or in .NET. ...

How to implement movement and placing of UITableViewCells in iphone??

Hi, I am developing an application in which I need to achieve movement and placement of UITableViewCells by dragging them to the desired positions(just like as we do for icons by long pressing them and placing them to the desired place). How to achieve it for the table view cells? Code for this is appreciable. ...

Zooming on an Animation using UIScrollView

Hi Guys, I've got a UIScrollView filled with images, one of the images is animated (i.e. has 45 frames repeating within it as 45 separate images). However, you can zoom in on the images using pinch gestures, but on the animation you cannot. Is there a way to fix this? Here's some of my code to help: - (void)setUpView { //INITIALISE...

initWithArray seems to give a reference to source array rather then a new array

Hi guys, In my code I use initWithArray like so : vendorArray = [[NSMutableArray alloc] initWithArray:resultsCore.availableVendors]; But changes I make to the vendorArray also seem to be made to restultsCore.availableVendors. This was not what I had desired. I want populate vendorArray with restultsCore.availableVendors but then le...

create a close "X" button for a UIView

How to add the button on the boundary of the UIView frame? I want to have a close button at the top left corner of the view,just like the Maxim app for IPad. ...

iPhone 4 Simulator error when saving image

Hi all, I have a little method that saves an image to the photo library. That works just fine for the iPhone simulator. But when I switch the simulator to iPhone 4 the image saving won't work anymore. I always get the "error"-alert: //save actual design in photo library - (void)savePicture{ UIImage *myImage = [self combineImage...

Most efficient way for partially drawing an UIView in drawRect:

I'm using setNeedsDisplayInRect: as much as possible in my UIView subclass, but I don't know what to do in drawRect:. What is the best way to detect which parts of the UIView have to be drawn? Right now I've divided my UIView into several CGRect's. For each CGRect I'm calling CGRectContainsRect() to check whether that CGRect needs to be ...

Application Failed to Launch in Time, even with a background thread

I am checking network reachability in applicationDidFinishLaunching: [self performSelectorInBackground:@selector(performReachabilityCheck) withObject:nil]; Background thread -(void)performReachabilityCheck{ NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; internetReach = [[Reachability reachabilityForInternetC...

iphone data synchronization

I'm new to iphone development. I currently have an app on windows mobile that uses a local database on the device (sqlce) and the app is able to synchronize the data between the device and a remote database through a web service using microsoft sync framework. Is this requirement feasible on an iphone app? Id like to build a version of...

Three20 : createModel not called

Hi, In a class which inherits from TTViewController, I create an UITabBarController : - (void)loadView { [super loadView]; YoutubeFeedViewController *y = [[YoutubeFeedViewController alloc] init]; SourcesController *s = [[SourcesController alloc] init]; tabBarController = [[UITabBarController alloc] init]; tabBarCont...