Skip to content
This repository has been archived by the owner on Jun 18, 2021. It is now read-only.

can i be a test user, #1

Open
abidullah opened this issue Dec 6, 2012 · 21 comments
Open

can i be a test user, #1

abidullah opened this issue Dec 6, 2012 · 21 comments

Comments

@abidullah
Copy link

dear escherba , can i be a test user for ur app please i am a developer too

@abidullah
Copy link
Author

i am getting this error when running the app

2012-12-06 20:39:44.974 WeatherLux[1908:c07] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFArray insertObject:atIndex:]: attempt to insert nil'
*** First throw call stack:
(0x1d3b012 0x14c0e7e 0x1d3adeb 0x1dbb9ed 0x1dbb8b0 0x2640 0xa0c7b7 0xa0cda7 0xa0dfab 0xa1f315 0xa2024b 0xa11cf8 0x26ebdf9 0x26ebad0 0x1cb0bf5 0x1cb0962 0x1ce1bb6 0x1ce0f44 0x1ce0e1b 0xa0d7da 0xa0f65c 0x211d 0x2055)
libc++abi.dylib: terminate called throwing an exception

@abidullah
Copy link
Author

i fixed the problem but still there is a small issue, the code

wsymbols = [[NSMutableDictionary alloc] initWithContentsOfFile:path];

in WeatherAppDelegate.m is the cause of it
if disabled the app works but if enabled it crashes , and i hope this is the part where the icons are deployed

@escherba
Copy link
Owner

escherba commented Dec 6, 2012

Right on...

Yes, the second problems is because you need to download the icon set from WWO. The 64x64 px icons are free, but my app also uses the 128x128 px icons which I purchased from WWO. If you're just learning, 64px is fine (will be a bit pixelated), just make a small modification so that 128px are not loaded. Below is a link to a text file that lists icon names and condition codes. That text file is actually identical to the PLIST file included with the project.

http://www.worldweatheronline.com/feed/wwoConditionCodes.txt

Regarding the first problem, can you do a pull request of the changes you made (or send me a screenshot of Xcode callstack in the left pane if it still crashes)? Thanks.

@abidullah
Copy link
Author

can u help me i managed to run the app but still the icons are not visible

@abidullah abidullah reopened this Dec 6, 2012
@abidullah
Copy link
Author

did what u asked and still there is no weather condition icons

@escherba
Copy link
Owner

My guess is that you don't have the icons added properly. There should be a blue folder under Resources group called "wsymbols01_png_64". In order to create it, when adding the wsymbols01_png_64 folder to project in Xcode, check "Copy items into destination group's folder (if needed)" under the file open dialog.

@abidullah
Copy link
Author

i did that still it crashes

@escherba
Copy link
Owner

Can you send me more details about the crash to [email protected]? Thanks.

@abidullah
Copy link
Author

oki

@abidullah
Copy link
Author

oh yea now it works i hade a small spelling mistake

@abidullah
Copy link
Author

now im getting a new error cannot find config.h file

@escherba
Copy link
Owner

Just add an empty "Config.h" file to the project and then the following two lines:
static const char cGoogleMapsKey[] = "YOUR_GOOGLE_MAPS_API_KEY_STRING";
static const char cWorldWeatherOnlineKey[] = "YOUR_WWO_API_KEY_STRING";

You will need to get Google Places API key and World Weather Online API key. They are both free to developers. I moved the keys to an ignored config.h for privacy reasons.

@abidullah
Copy link
Author

thanks

@abidullah
Copy link
Author

now there is a new error

/Users/Aftab/Downloads/Weather-master/Config.h:1:19: Redefinition of 'cGoogleMapsKey'

@escherba
Copy link
Owner

I had that error too in one instance, but I moved `include "Config.h"' lines to header files and cleaned project before building, and it went away. Try doing the same...

@abidullah
Copy link
Author

i deleted the config.h file and added the keys manually and it works

@abidullah
Copy link
Author

IMG_0488
IMG_0489

see my work with my icons

@escherba
Copy link
Owner

Good work.

@abidullah
Copy link
Author

thanks to you bro

really i learnt a lot from your example, can i use the example in my app ?

@abidullah
Copy link
Author

made some changes see it with day and night background images

iOS Simulator Screen shot Dec 20 2012 2 34 28 AM
iOS Simulator Screen shot Dec 20 2012 2 34 22 AM

@abidullah
Copy link
Author

can i add this project in my app?

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

No branches or pull requests

2 participants