Aryl amines contain an amine group which is directly attached to the aromatic ring. The lone pair of electrons gets delocalized and shows resonance with benzene ring. Therefore, aryl amines are weaker bases than arylalkyl amines. Therefore, the correct order of basicity is i > iii > ii > iv