Garage Band for IOS
I don't know how to work with loops yet. However, I know how to change the length of apart.
Swipe across the top bar past Settings till you get to song sections. You probably have just one section so you can just tap on it and change the length of the section or if you have more than one section you will have to Tap info. Choose auto to record any length.