The Taiwanese company Elan Microelectronics has sued Apple, alleging infringement of two of its touch screen patents, an Elan spokesman said. The suit was filed Tuesday in U.S. District Court in San Francisco, Dennis Liu, an Elan spokesman, said by telephone from the headquarters of the chip design company in Hsinchu, Taiwan.