Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8856101
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T14:17:02+00:00 2026-06-14T14:17:02+00:00

I’ve got a problem with calling methods in external files which I have imported

  • 0

I’ve got a problem with calling methods in external files which I have imported into my project. The methods are for some reason not being called, even though the project compiles ok. And there is no error message/ output in the console.

Can someone help?? Here’s the full problem:

(1) I downloaded the Flickr API (4 files) written by the author of this tutorial and drag&dropped into the Xcode file manager, specifying to copy and link the 4 files with my project.

* Flickr.h
* Flickr.m
* FlickrPhoto.h
* FlickrPhoto.m

(2) In the main view controller, I first import the external files

#import "Flickr.h"
#import "FlickrPhoto.h"

(3) Then I define a property to hold the object, in the @interface section:

@property (weak, nonatomic) Flickr *flickr;

(4) In viewDidLoad, I allocate a new instance of the object:

self.flickr = [[Flickr alloc] init];

(5) Then in a later method, I call one of the methods in the API:

[self.flickr searchFlickrForTerm:textField.text completionBlock:^(...) { ... }];

However, the method is not getting called: I have put a NSLog line right before this method call, and it prints to console. I also put an NSLog in the first line of the method:

- (void)searchFlickrForTerm:(...) term completionBlock: ...

and it is not printing anything.

Why is this method not being called???!!! Never had this problem before. Its really annoying.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T14:17:04+00:00Added an answer on June 14, 2026 at 2:17 pm

    Try changing your property to be strong instead of weak, and see if that fixes your issue:

    @property (strong, nonatomic) Flickr *flickr;
    

    If that fixes it, the issue was your property was being deallocated before you were able to use it. You wouldn’t see any error, because a “weak” property ensures that a pointer is set to nil once the object is deallocated (and Objective-C doesn’t throw errors on sending messages to nil).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just tried to save a simple *.rtf file with some websites and
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
this is what i have right now Drawing an RSS feed into the php,
I have a French site that I want to parse, but am running into
I have an autohotkey script which looks up a word in a bilingual dictionary
I have an array which has BIG numbers and small numbers in it. I
I have a text area in my form which accepts all possible characters from
I am currently running into a problem where an element is coming back from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.