Is a ball head or pan head tripod better for iPhone?

The answer depends on the type of photography. If you are going to take photos of dynamic subjects, then use a ball head as it is more convenient for taking pictures of moving objects. A pen head tripod is more suitable for static photography. Make sure to decide that, for which purpose you want to buy a tripod stand.