Closed sattler closed 9 years ago
Can you remove first if statement and see what happens? Also does examples work for you?
On Tue, Dec 9, 2014 at 7:48 PM, sattler notifications@github.com wrote:
The image below describes the problem: I set the delegate and afterwards it isn't set in the object but I can't imagine why. The location afterwards is set in the manager object.
The Object which is set as delegate implements the ESTIndoorLocationManagerDelegate (obviously).
Reply to this email directly or view it on GitHub: https://github.com/Estimote/iOS-Indoor-SDK/issues/5
without if now the same and the examples work for me also with my own location.json
Can you check following with code from examples?
On Tue, Dec 9, 2014 at 7:56 PM, sattler notifications@github.com wrote:
without if now the same
and the examples work for me also with my own location.json
Reply to this email directly or view it on GitHub: https://github.com/Estimote/iOS-Indoor-SDK/issues/5#issuecomment-66336451
This one is your Swift code Example with my json file without optional and it works
and this one with optionals works too but I can't find any difference between the example code an my implementation specially that the delegate doesn't get set seems wired to me
I cannot either, please strip down examples to suit you. In this manner everything will go well.
On Wed, Dec 10, 2014 at 12:49 AM, sattler notifications@github.com wrote:
This one is your Swift code Example with my json file without optional and it works and this one with optionals works too but I can't find any difference between the example code an my implementation
specially that the delegate doesn't get set seems wired to me
Reply to this email directly or view it on GitHub: https://github.com/Estimote/iOS-Indoor-SDK/issues/5#issuecomment-66380933
We just found the problem. The delegate
needs to be subclass of NSObject
, otherwise setting the delegate is ignored. Why?
It might be swift and obj c interoperability thing. On 10 Dec 2014 10:27, "Josias Montag" notifications@github.com wrote:
We just found the problem. The delegate needs to be subclass of NSObject, otherwise setting the delegate is ignored. Why?
— Reply to this email directly or view it on GitHub https://github.com/Estimote/iOS-Indoor-SDK/issues/5#issuecomment-66424556 .
The image below describes the problem: I set the delegate and afterwards it isn't set in the object but I can't imagine why. The location afterwards is set in the manager object. The Object which is set as delegate implements the ESTIndoorLocationManagerDelegate (obviously).