akapuch / dev_floor Goto Github PK
View Code? Open in Web Editor NEW폰으로 보는 개발자 블로그
폰으로 보는 개발자 블로그
반드시 데이터베이스 사용해야 함. 앱이 재실행 되었을 때도 히스토리가 남아있어야하기 때문에..
urlsession으로 앱이 실행될때마다 데이터를 비동기로 가져오는 것은 너무 많은 시간 소요, 여러 문제 발생
로컬 데이터베이스에 가져온 데이터를 저장하고, 필요할 때마다 트랜잭션
로컬 데이터베이스에서 날짜 순으로 정렬하면 포스팅이 순서없이 표시되는 문제 해결 가능
최초 앱 구동 시에는 초기 데이터를 비동기 네트워킹을 통해 받아와야 하긴 할텐데, 로컬 db에 미리 담아서 배포하거나 다운로드 시 로컬 db에 담는 것이 가능한지
즐겨찾기 데이터만 저장할 때보다 로컬 db가 무거워질텐데 용량을 많이 차지하게 되면 앱 동작에도 영향을 주는지..(앱 실행 같은)
최신 정보를 받아오기 위해서라도 urlSession을 통해 비동기 통신을 시도할텐데, 모든 데이터 파싱해오는 것과 비교했을 때
blogs
배열에 저장blogs
배열의 RSS컬럼 정보로 파싱하여 다시 BlogPost 클래스 형태로 blogPosts
배열에 저장reloadData()
를 통해 테이블 데이터 갱신cellForRowAt
, numberOfRowsInSection
호출. cellForRowAt에서 indexpath의 셀에 접근하여 셀 구성요소에 blogPosts
배열의 BlogPost 클래스 정보 할당blogPosts
배열을 초기화하고 getNetwork() 호출단어가 바뀔때마다 getNetwork()를 호출하면 예를 들어, RUST를 검색했다고 했을 때 RUS와 RUST의 검색결과에 같은 blogPost 클래스가 포함되어 있기에 필연적으로 같은 셀이 생성되는 것 같다.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.