Fixed deprecated metadatas.textAlignment = UITextAlignmentCenter; with metadatas.textAlignment = NSTextAlignmentCenter;