objective-c

best plotting library for iOS sdk

What is the best plotting library for the iPhone's iOS SDK? I tried out core plot but looks like it's still pretty unstable. Any help would be appreciated. ...

CoreData/SQLite fastest way to determine if a field doesn't end with a particular string

I'm using CoreData backed by SQLite and I'm trying to find the fastest way to exclude rows where the field AirDate ends with -00-00 I've noticed that [NSPredicate predicateWithFormat:@"NOT AirDate CONTAINS %@", @"-00-00"] is much faster than [NSPredicate predicateWithFormat:@"NOT AirDate LIKE %@", @"*-00-00"] Are there any other o...

button does not click

I want to add view for tableviewcell. click the button on the view. however. why it responsed is didselected event. not click event. please help me! thanks very much! ...

Uitableview in editing mode: how to add both the "+" (add) and "-" (delete) buttons at the same time?

Is it possible to have a uitableview that when in editing mode it shows both the red button ('-') and the green button (+) I wanted to do so so i can either delete a row or duplicate it. ...

What kind of algorithm do I need?

I'm trying to figure out all the different ways I can create groups of 4 from 6 objects using objective-c. For example, if I had the following objects: a, b, c, d, e, f Then I could create groups like a, b, c, d b, c, d, e a, d, e, f and so on. Order doesn't matter. If I wanted to figure out all the different possibilities, what ki...

How do you get the variables passed into function using macros (objective c)

Does anyone know how to dynamically get all the variables values passed into a function for the sake of logging ? I'm looking for a simple way (like using a compiler macro) to be able to log the function, and the variable values passed into it (which will then be written to a log file so we can easily find inputs that cause functions to...

development of an ipod app

Hi all, i am currently a student doing my assignment on an ipod app. I need to estimate the costs involved in app development. I thought you could help me. How much would it cost to develop an app which allows you to communicate via bluetooth(iphone to iphone for example) using a headset? Thank you. ...

Why use TT_RELEASE_SAFELY in three20 for iPhone?

#define TT_RELEASE_SAFELY(__POINTER) { [__POINTER release]; __POINTER = nil; } Why is does three20 consider it safe to assign an ivar to nil after releasing it? Is it unsafe to leave out the ivar = nil step? This is all I found: http://github.com/facebook/three20/commit/1b946f475fb28d60e0aafc9ef394050c642c3a5b#commitcomment-115517 I ...

Problem accessing bounds on multiple UIAlertViews

I'm using UIAlertViews to display specific in-app messages and occasionally my app shows multiple alerts. The problem comes when I am attempting to access the bounds of the alerts. Here is some code to illustrate the problem. This is put in a brand new View-based app: - (void)viewDidLoad { [super viewDidLoad]; [self makeAl...

Update data displayed in tableview on ipad

Hello Longtime C# developer, newbie objective c and iPhone/iPad developer. Basically I am writing an app which displays search results on a map and there is a button on a uitoolbar that displays a popover of the results on the map to scroll through. It's all working except if I make a second search and the data changes this change is ...

Hierarchy level in UINavigationController in iPhone

Is it possible to decide the number of hierarchical level dynamically in UINavigationController in iPhone ? Actually, in my application I have to display hierarchical data but I don't know the number of levels at the coding time. The number of levels can be increase or decrease. The exact number of levels will known to me at the time of ...

iphoto style album stack for ipad application ipoto

Hello, I am looking to develop a video and image gallery in my app. The thing I found useful to be used for the videos is the FLOW COVER option available at http://www.chaosinmotion.com/flowcover.m. However, I would also like to show albums in the iPAD style Stacked albums A video representation is at Youtube (43 second onwards). I ...

how to play video in iphone, xcode

Hi to all, i am creating a movie application in iphone . i want to play a video in my application. My Video url is located locally. Please anybody help me in how can i play a video in my application ...

Change Window Button's Control Tint

I'd like to override the default system control tint for my app to be always NSGraphiteControlTint. The following code doesn't seem to work though. Any suggestions? NSButton *button = [window standardWindowButton:NSWindowCloseButton]; [[button cell] setControlTint:NSGraphiteControlTint]; Regards, Erik ...

How to order an array of objects by a certain property in XCode

Let's say I have an array of custom objects. The custom class looks like this Person ------- name number Now let's say I want to rearrange the array of these objects so that the objects are sorted by the number. How can this be done? ...

Shadow inside UIView

I am working on iPhone application development and have come across shadows of UIView. I know how to show shadows to a UIView but what I am actually interested in is to drop shadow inside the UIView. Like when I set shadow properties of a UIView the shadow is dropped behind the view. I want it to come over the view so that the view loo...

Application crashing upon release of UITableViewController

I have a class that retrieves data from core data and stores it into a NSMutablearray. It also has a function that returns this array. datamanager.h: @interface DataManager : NSObject { NSMutableArray *feedItems; ... } @property (nonatomic, retain) NSMutableArray *feedItems; ... datamanager.m: ... -(void)loadNews{ ...

How to add navigation bar to my player page or video page

Hi to all, i am creating a movie application on iphone. i have added navigation bar dynamically to my page i.e when it navigates from one page to another it shows navigation bar with a navigation item on the left hand side . on clicking the navigation item on the left side i can navigate to my page.But my code for navigation bar does no...

How to adjust the volume of MpMoviePlayerController in Iphone sdk?

Hi, I need a help fro your side.I am using the MPMoviePlayerController and I need to mute the volume of the movieplayer forever.Is there any property to do this.Can you please post some code regarding to this. Anyone's help will be much appreciated. Thank you, Srilakshmi. ...

I am getting the leak in the follwing code ? memory management

Hai Guys, I am getting the leaks as 100%. I don't know how to release the object after it returns Could you explain the procedure how to release the allocated Titles object. -(Titles *)listTiles { Tiles* tile = [[Tiles alloc] init]; tile.googleTile_X = (int)tileX; tile.googleTile_Y = (int) pow(2, aZoom) - 1- tileY ; tile.zoomLevel ...