I'm implementing asynchronous image loading in UITableView, If I scroll rows fast my app crashes due to message sent to zombie... What is wrong am I doing here?
//loading image from URL
-(void)loadImageFromURL:(NSURL*)url {
if (connection!=nil) { [connection release]; }
//data is NSMutableData
if (data!=nil) { [data release]...
After I connect my iPad to an external screen, my window gets distorted all weirdly. I'm guessing this is because the screen's resolution is different than the iPad's and my app is not setup to autoresize it's views very well.
Is there anyway to have the rendered output on the external screen be a a scaled visual image of the original i...
I was expecting this to work, only thinking it would fail if I had locally declared another variable called "tableView"
NSLog(@"X: %@", [tableView delegate]); // Fails: tableView undeclared
.
NSLog(@"X: %@", [[self tableView] delegate]); // Works:
Is this because you need self to refer to items on the actual object?
NB: this code ...
Hi,
I have a navigation bar based application, and at one specific point in the app I have a button on the nav bar that should present a new view using a flip transition (essentially taking a user from a tableview to a map view). I'm currently using
DetailLocationView *detailLocationView = [DetailLocationView alloc] init];
detailLoca...
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...
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...
How can i grab the current view's navigation title and store it in a variable for use in my code?
thanks
...
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
...
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...
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...
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...
Disclaimer: Cocoa newbie here.
I wrote an app with a Cocoa GUI that acts as a wrapper for a command line tool. The problem is the tool does not come standard with OS X. Thus, you have to install the command line tool first before using the Cocoa app, or else the app won't function.
Can anyone point me to some documentation (hopefu...
hello, I have a searchBar (with scopeBar) where I want to dismiss the keyboard when the server returns relevant results. I have the following code:
- (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView{
[search resignFirstResponder];
//height - navBar - searchBar - carrierBar - uitabbar
CGRect newFrame = CGRectMak...
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...
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 ...
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.
...
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
...
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 ...
New to iPhone dev. I have a view which contains a UIScrollView which contains a UIImageView. I added a (double) tap gesture recognizer on the image view which makes an alert box open. For some reason, and I'm sure I'm just retarded, it opens 3 times.
Here's my code:
- (void)viewDidLoad {
scrollView.delegate = self;
UIImage* i...
I have an NSTextField which uses as an extended NSTextFieldCell, which creates a custom field editor, that intercepts and records key events. (Knowing the key events is important for the application, but the text field is still supposed to work as usual, by calling the [super ...] method). This is what the official documentation suggests...