iphone

One to Many relationships iPhone - NSPredicate core data query

I have a have a number of calendars, which each have a number of events. I would like to find all the events for a calendar where date > x. My method signature looks like this -(NSArray*)eventsForCalender:(Calendar*)calender StartDate:(NSDate*)start endDate:(NSDate*)endDate; I added an Event to a calender like this, but I don't have ...

EASY PHP question?

HI Guys, I have following problem. I'm trying to connect from my Iphone app to a php site, to access the mySql db, to get the right information. This is my code: <?php mysql_connect ("localhost", "user", "pass") or die (mysql_error()); echo "Connected to MySql <br /><hr />"; mysql_select_db ("database_com") or die (m...

Text misalignment on tableview cells on iPhone device

For some reason, when I am using the iPhone simulator, all of my text in my tableview cells displays correctly. However, when I publish to the device, the text inside of the cell is shifted up to almost outside of the bounds of the cell. Any ideas as to why this would be happening on the device and not on the simulator? ...

Displaying nearby businesses in mapkit

Is it possible to display nearby businesses in mapkit? If not, how else can that be done? Is there a way to display by category - restaurant, retail, museums? Also, I don't think displaying traffic flow is available. Can anyone confirm? ...

UISlider in UIBarButtonItem impacts animation behavior

Hi all In IB, I set a view MyView with an UIToolBar and I drop an UISlider on it. IB automatically embeds it in an UIBarButtonItem and sets its view with the UISlider. I display this MyView in a navigation controller with animation. UIViewController *myVC = [[UIViewController alloc] initWithNibName:@"MyView" bundle:nil]; [self.navigat...

iPhone Application using Web Services

Hey im looking to developed some webservices for an Iphone, id like to do this in a .NET environment. Whats the best way to get started i.e. Can I just go ahead and create the webservices I need first off all like any other webservice or does there need to be some consideration since these webservice will be built for IPhone. Also my...

Are multiple UIView animation callbacks a bad idea (i.e. cause mem issues)?

I have multiple UIView animations running in my app. They are very short, and then make callbacks to a method that then usually fires off another animation. This leads to a lot of little animations running at the same time, each firing back callbacks. This actually performs pretty well, and for the first few levels (the app is a game)...

Cocos2d - Shooting Game Problem

Hi,everyone, I made a shooting game just like 1942(classic shooting game),but here's the question, FPS drops to 5~6 when the fighter shoot out a straight line of bullet,about 7~8 bullets in the screen,Actually, only 8 bullets of player will appear in games, when bullets fly out of the screen they would reset to the fighter's center and b...

iPhone Video API. Is frame by frame control possible.

I would like to do the following on iPhone/iPodTouch: Open a video and - via swipe or tilt - use gesture to move through each frame. Think of it as a gestural flipbook. Does the video API support seeking frame by frame in this manner? Thanks, Doug ...

Linking two UIScrollViews so they follow each others touches

I want to make a list, that is divided in 2 parts, left and right. The left part can only scroll vertically (has a list in it). The right part scrolls vertically, and horizontally.. So, I want a control that has a list on the left side, and a view on the right side, both detect scrolls. But the left part always stays on the screen, and ...

Replacement for use of nil in dictionaries in objective-C

Hey stackfolk, I'm working in the IPhone SDK, and am pretty new to objective-c. Right now I'm working with NSUserDefaults to save and restore setting on my IPhone app. In order to save the classes that have been created, I encode them into dictionary form, and then save the NSdictionary. My problem is that I can't find a reasonable w...

iPhone: optimized drawing in quartz

I have created a CG context that is 800 pixels wide and 1200 pixels height. I have created CGLayer over this context that has been transformed (scaled, translated and rotated). So, at some point, as the CGLayer is bigger than the context and has been translated, rotated, etc., not all parts of this CGLayer falls inside the context. See n...

Are there WWDC 2007 or 2008 videos for iPhone OS?

Does anyone know if at WWDC 2007 or 2008 there were iPhone sessions which were available as video? If so, where could I get these? I know about 2009, but I assume that in 2008 or 2007 very interesting things were covered under the hood regarding deep basics! ...

\n is not working in plist?

Hi I created array.plist file where I am storing key value pair e.g key = MY_FIRST_MESSAGE Value = Welcome\n I am happy to serve you. in xml format Welcome\n I am happy to serve you. I received this sting in dictionary and display in textview like below code textView.text = [myDict objectForKey:MY_FIRST_MESSAGE]; But I am not abl...

How to fix an 'Object' may not respond to 'method' warning in Cocos2d.

In cocos2d, I'm trying to call a method on the Parent of a CocosNode. The app works fine, but I get an 'Object' may not respond to 'method' warning. The parent is a subclassed Cocos2d layer, so I'm guessing I need to cast parent somehow, but that generates fatal errors. The method is like this if(CGRectContainsPoint([newBrick boundingB...

unwanted UIImageView resizing when in a UIView

I'm programatically creating a custom section header for a table that has a width set to 290. When I use a UIImageView containing a 290 x 29 PNG directly the image appears correctly. However, I'm refactoring to include a UILabel so I can do some custom text so I place the UIImageView and UILabel in a UIView. When I view this version, ...

MKMapView disposal

Hello, I have a strange(?) crash after releasing MKMapView. MKMapView is a subview in my view controller and after I remove that view from navigation stack and release it application crashes with this stack: ... #4 0x34196dc8 in -[MKMapView(UserPositioningInternal) locationManagerFailedToUpdateLocation:withError:] #5 0x3417030c in -[M...

CG/NSPoint-like integer tuple type?

Is there an appropriate structure provided in the Apple foundation kits to represent discrete coordinate systems? I know I can just use the integral component of NSPoint and by convention keep it discrete, or even define my own. However if there is one already which is typed correctly I would prefer that and avoid implicit / explicit...

nsxmlparser not solving &apos;

Hi! Im using NSXMLParser to dissect a xml package, I'm receiving &apos inside the package text. I have the following defined for the xmlParser: [xmlParser setShouldResolveExternalEntities: YES]; The following method is never called - (void)parser:(NSXMLParser *)parser foundExternalEntityDeclarationWithName:(NSString *)entityName pu...

Can you return to a specified view within a NavigationController?

Is it be possible to return to the first view of a NavigationController? Example: View 1 -> View 2 -> View 3 -> (An action is performed) Return to View 1 ...