Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace UISearchDisplayController with UISearchController #28

Open
tciuro opened this issue Oct 10, 2015 · 11 comments
Open

Replace UISearchDisplayController with UISearchController #28

tciuro opened this issue Oct 10, 2015 · 11 comments

Comments

@tciuro
Copy link

tciuro commented Oct 10, 2015

Hello,

Now that Xcode 7 is out, it would be great to see Sol updated for iOS 8 or iOS 9. The UISearchDisplayController class been deprecated in iOS 8 with UISearchController, so when running Sol in iOS8 or later, the app doesn't work well (it takes several attempts to search and select the city to see the weather).

@tciuro
Copy link
Author

tciuro commented Oct 11, 2015

Hello Comyar, I'm curious as to why you're not using Storyboard. Is it a matter of preference? Thanks for the app! :-)

@comyar
Copy link
Owner

comyar commented Oct 11, 2015

Yeah, really just preference. I never saw the advantage of using nibs and storyboards were really wonky when they first came out (i.e. impossible-to-resolve merge conflicts), so I just ended up writing my layout code by hand. Nowadays storyboards are much nicer, but old habits never die.

@Samzhang029
Copy link

Comyar, would you like to fix this problem as I was working on iOS8.4?
Sol works no well to display weather info.
I tried to change the change UISearchDisplayController to UISearchController and met other errors. :(

@comyar
Copy link
Owner

comyar commented Apr 6, 2016

I'm currently writing a Swift version of the app (with an updated/cooler UI!) which is why I haven't gotten around to fixing this.

@Samzhang029
Copy link

I want to use this SOL into my automation testing demo. Now everything is OK except the display the weather.
I am not good at the Objective-C, so cannot fix the problems.
Do you have the github link of your Swift version of the app? If it can work, I can change to this app.

@comyar
Copy link
Owner

comyar commented Apr 7, 2016

I don't have the Swift version on GitHub yet...are you saying you're having trouble getting location search results working? I'm not clear on what the issue is here.

On Apr 6, 2016, at 5:48 PM, SamZhang notifications@github.com wrote:

I want to use this SOL into my automation testing demo. Now everything is OK except the display the weather.
I am not good at the Objective-C, so cannot fix the problems.
Do you have the github link of your Swift version of the app? If it can work, I can change to this app.


You are receiving this because you commented.
Reply to this email directly or view it on GitHub

@Samzhang029
Copy link

Thanks for quick reply!
No, app can search the locations.
The problem is after selected location it cannot display the weather information and it indicated an unhappy face and "Update Failed. Check your network connection."
I am sure we have the internet access.
Maybe it's not the problem of UISearchDisplayController. Do you like to have a try?

@comyar
Copy link
Owner

comyar commented Apr 7, 2016

Yeah that's definitely not going to happen because of the UISearchDisplayController. Do you have a valid Wunderground API key?

On Apr 6, 2016, at 6:52 PM, SamZhang notifications@github.com wrote:

Thanks for quick reply!
No, app can search the locations.

The problem is after selected location it cannot display the weather information and it indicated an unhappy face and "Update Failed. Check your network connection."
I am sure we have the internet access.
Maybe it's not the problem of UISearchDisplayController. Do you like to have a try?


You are receiving this because you commented.
Reply to this email directly or view it on GitHub

@Samzhang029
Copy link

Yes, we have a valid API_KEY. And if we use the web browser we can get the JSon.
It's strange problem.

@comyar
Copy link
Owner

comyar commented Apr 7, 2016

Hmm I'm not sure then...it should just work unless you're trying to add features, in which case it's likely just a bug on your end. I'd be happy to look at a code snippet or two if you think you can narrow down the problem to a few problem areas.

@niarilorn
Copy link

Not bad at all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants