iphone

Run-time crash when reading NSDictionary data set in NNNAppDelegate

HI In have run into awkward situation while trying to come up with localization-solution for language(s) not natively supported in iOS. As I am new to Objective-C maybe I have overlooked something related to the memory management.... Background: Idea would be to read read not-supported-language strings to "global" NSDictionary and crea...

Scrollview doesn't remains on same place

I have added some UIButton in scrollveiw and linked it up with page control but when I tap my button so my pages control automatically scroll to page 1 which is initial page. So how can I erradicate this problem. After TouchUp inside event it comes in this delegate function - (void) scrollViewDidScroll: (UIScrollView *) aScrollView and...

iPhone MapView gets removed

I have a tabBar in my application. In one of the section i have two views which i toggle between using segment buttons. In one of the view i have MapView which i use to display list of users using their pic as annotation. On the other view i have tableView which shows the same users in table format. Now everything is working fine, i a...

Store navigation.title in variable iphone

How can i grab the current view's navigation title and store it in a variable for use in my code? thanks ...

iPhone: Forge GPS location data?

I want to be able to do like FakeLocation ( http://iphonehelp.in/2009/12/17/fakelocation-lets-you-to-fake-your-gps-location/ ) Is there any documentation online on how to hook the CoreLocation framework and fake the GPS location obtained by any app? Would like to implement my own solution. Regards, John ...

CoreData: multiple copies of the same item linked to another?

In Core Data is there a way to have one instance of an object to have multiple links to another? This is best understood with an example. You have a shopping cart object, ShoppingCart, and you have books, Book. How do you properly put multiple copies of the same book into the cart? No matter how many times you run [shoppingCart addBooks...

Receiving CLLocation updates on a background thread

Hi, I am trying to implement a (non-concurrent) NSOperation for location updates using the iPhone SDK. The "meat" of the NSOperation subclass goes something like this: - (void)start { // background thread set up by the NSOperationQueue assert(![NSThread isMainThread]); if ([self isCancelled]) { return; } s...

Facebook extended permissions and interested_in property

Which Facebook extended permissions makes the interested_in property of friends show up? I've tried using friends_about_me, friends_relationship_details, and friends_relationships. Which one is interested_in located? I'm using the Facebook SDK for iOS devices by the way. If not enough are found, is it because I'm doing something wrong...

Is there a UIView resize event?

I have a view that has rows and columns of imageviews in it. If this view is resized, I need to rearrange the imageviews positions. This view is a subview of another view that gets resized. Is there a way to detect when this view is being resized? ...

Pathfinding / Deciding on direction

Hi everyone, i'm making a simple iPhone game using cocos2d-iphone. I have an array of fiends, the "fiendSet" which has to navigate around a field full of obstacles. I spent the last three nights trying to get my A* pathfinding to work. I found the actual A* implementation here on stackoverflow and it works brilliantly. However, once i tr...

Core Data saves object even when validation fails

I've included the function that is handling all of the save functionality. Here's my problem. I am grabbing 5 input values and saving it as a CoreData Log Entity. Even when the Log object fails to validate, it is still being saved when I back out of the form and look at the table view. How can I force Core Data to only save the ob...

Implementing NSCopy

I'm a little confused on the correct way to make my class support NSCopy mechanics and I'm hoping someone can help clear things up for me. The big question is this: If my class is mostly immutatble except for a collections property, when I'm implementing the 'copyWithZone' method through NSCopy inheritance, do I need to do the version w...

iPhone UIWebView - Can auto complete be turned off on a input text field?

Hi, I've searched high & low for an answer on this and I can't seem to find an answer or anybody else having the same issue. Hope some one can assist? I have a web page for signup which I'm viewing in an iPhone UIWebView. A user is asking if we can stop capitalization on the first letter of the email address being entered. I thought...

How to call a method on background thread

Hi all... in my app i am unzipping a zip file(in splash view controller) later i am displaying an image and firing a timer with 4 secs to change image of the previous image view. and later in view did appear i am firing another timer with 10 secs to call next view controller(home view controller).. and there i have a button to go Story ...

draw a line from a stationary point to a moving point on iphone

How can I draw a line between one point (the center of one UIView) to a point that moves (touch location), and the line moves the 2nd point as the touch moves. ...

How do i query data from SQL Server 2005/2008 databases to iPhone

Hello, I am trying to figure out how to utilize exisiting SQL Databases with my iPhone apps. What i am trying to do, is have a search function. The user inputs a keyword, i would then query my SQL database dependant on the user input and return the results from a database. How do i do this with the iPhone? EDIT: I mean SQL Server 200...

exc_bad_access from object returned from NSKeyedUnarchiver

I am having trouble loading from saved data an instance of a custom class that conforms to the NSCoding protocol. My class has a UIImage property and when I assign a new UIImage to it the program crashes with an exc_bad_access. In the view controller I declare my object like so: @interface SomeViewController : UIViewController { ...

login to a website in iphone

hi all i am developing one app which will login to vonage website and do some functions like call froward etc . For that purpose first i am trying to login to vonage website i did these steps 1) Found the login url of vonage https://secure.vonage.com/vonage-web/public/login.htm 2) used livehttpheader addon to capture out...

Using tap gesture's locationInView & CGPoint

New to iPhone dev. Can someone tell me why -(IBAction) handleTapGesture:(UIGestureRecognizer *) sender { CGPoint *tapPoint = [sender locationInView:imageView]; NSLog(@"tapped"); } gives me error (for the CGPoint line): incompatible types in initialization ...

Why does my animation in my cell disappear when the cell is selected?

I have an animation as my image in one of my tableview's cells. When it is clicked, it turns the default blue and the image disappears! The navigation loads the new view, and when it I go back to the first view, hoping my animation returns, alas, there is no image :(. I don't do anything in the didSelectRowAtIndexPath function besides ...