hi guys,
i'm working on app practice grabs data webpage , uses highlight sections on map.
first part in solving problem parse html data webpage. have code grabs webpage i'm having trouble figuring out how may grab information need.
here snippet of html need grab:
code:
<tr bgcolor="#95bce3"> <td>[b]snow drop - beginner's area[/b]</td> <td align="center">[b]yes[/b]</td> <td align="center">[b]yes[/b]</td> </tr> <tr bgcolor="#cccccc"> <td>[b]fox trot[/b]</td> <td align="center">[b]yes[/b]</td> <td align="center">[b]no[/b]</td> </tr> <tr bgcolor="#95bce3"> <td>[b]run out[/b]</td> <td align="center">[b]yes[/b]</td> <td align="center">[b]yes[/b]</td> </tr>
i haven't found in apples documentation seems able me (everything xml or json) looking in wrong spot.
i'm trying grab information in bold "snow drop - beginner's area" , 2 parts underneath (the yes , no sections). once grabbed this:
snow drop - beginners area
yes
yes
fox trot
yes
no
..etc
understand there third party libraries trying use ios/objective-c if possible , minimize reliance on third party.
can give me suggestions on how may go this?
edit: should add names unchanging, search file (currently stored in nsdata object) "snow drop - beginners area" use type of search function grab next 2 instances of either yes or no, move on search "fox trot" , same thing.
i'm assuming there more elegant solution wondering if had ideas.
edit2: discovered nsscanner class. i'm going try , working this.
Forums iPhone, iPad, and iPod Touch iOS Programming
- iPhone
- Mac OS & System Software
- iPad
- Apple Watch
- Notebooks
- iTunes
- Apple ID
- iCloud
- Desktop Computers
- Apple Music
- Professional Applications
- iPod
- iWork
- Apple TV
- iLife
- Wireless
No comments:
Post a Comment