If the nanostructures have residues affected by pH of the environment (like amine groups, hydroxide groups and any other hydrogen acceptors and donators), then the pH of the environment would effect the formation of nanostructures by addition or subtraction of hydrogen groups, and thereby forming or removing some charged residues on the monomers of the nanostructures. These addition/removal of charged residues will affect the gathering of the monomers for formation of nanostructures definitely.
But even if those hydrogen acceptors and donators are absent in the nanostructuresm and lets say, it is composed of metal ions; then, similarly those metal residues will be affected by protonation at lower pH values, and get corroded in the example of iron (Fe).
And of course this changes can be used as advantages, for example for microfluidics, or lab-on-a-chip sensors that use pH as a changing variable for indication of data. This way, the change of the shape of the nanowire can be sensed as a data and revealed.