Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我最近在使用 MPMoviePlayer 时遇到了很多问题。我的应用程序针对 3.0+。那么如果我在 3.0 下编译它会在 iPad 上运行吗?因为它在 3.2 上不起作用,因为自 3.2 以来新的 MPMoviePlayer 更改
使用#ifdef语句
#ifdef
#ifdef IPAD /* use 3.2+ MoviePlayer framework */ #else /* use 3.0 MoviePlayer framework */ #endif