In a former life I was an iOS developer, and got my share of App Store rejections. It's important to not take it personally. A rejection letter from the App Store is not some personal judgment of your morals, an insult to your coding ability, or a referendum on how good/useful your software is. It's simply a notice that as it stands, they won't publish your app through the AppStore for [reasons]. You can disagree with the reasons, and reasonable people can debate whether the reasons are fair or not, but you're not some kind of lesser developer just for getting rejected.
Sometimes you can fix your app to comply with their rules, and sometimes the fundamental concept of the app is incompatible with AppStore distribution and you can't. Either way, it doesn't necessarily mean the app is shitty or that you're "on Apple's bad side."