Were the movies "Ip Man 1+2" based on what really happened in Yip Man's life?

I have watched both of those films, and I love the moral of the movies, but did most of the events really happened in Yip Man's life? How accurate were the films compared to Yip Man's biography?
7 answers 7