iOS - Remove achievement - objective-c

I've started using Game Center in my App but while I'm testing achievements I noticed that I don't know how to delete/reset them. I also tried to go on the Game Center (on the simulator) swipe on the App and delete it. But when I play my App again, the achievements that I've previously unlocked are still there.
There is a way to reset/delete them?

Nevermind. I found "resetAchievementsWithCompletionHandler" method. Didn't know how I missed that before.

Related

Local notifications won't show up on device?

I made an iphone app for my girlfriend and it works fine on my iphone.
On her's iphone too except the local notifications won't show up.
The app also won't show up in the notification center of the iphone settings itself.
I searched for differences in my iphone settings and her's but I can't find the problem.
I did not paste my notification code because I think the problem lays somewhere else..
Any help?
Is she using iOS 8? If so, make certain you call UIApplication's registerUserNotificationSettings: method so the app can display local notifications.
You can determine if it worked by adding a application:didRegisterUserNotificationSettings: method to your app delegate.

UI in in IOS simulator doesn't show

I have a question I am trying to create a database from a tutorial that I have posted on here. The problem that I keep having is that when I build the project the project is built successfully. However when the IOS simulator pulls up to show me the UI I have a black screen. I have doubled checked that my connections to my storyboards are correct. and still my UI still not displaying. I have made sure that I had my sqlite library connected within the project and it is. This is a single view application for an IPAD. I have searched ways of finding issues within my code and I have done breakpoints to see where my application breaks. and This is what I have found.
this is where my application breaks because is the first screen that it pops after I have started the IOS simulator. I do not know how to fix this.
this screen basically tells me that there is something wrong with the UIwindow alloc. For some reason is breaking here and I do not know why.
This last screen shot is not that great to interpret especially if its in numbers.
Please help. I will be posting more screen shots if needed at this point I need all the help that I can get. I did not think that it would be difficult to create and link a db.
If you are using storyboards you need to remove all the code in didFinishLaunchingWithOptions and just return YES. Also set your main storyboard file appropriately in the plist file.

Make Image Spin Until Stopped - Xcode Mac App

I have a png of a gear the I want to react just like an NSProgressIndicator, so that when a process is happening, it spins, and when nothing is happening, it stops. I am new to Xcode stuff, so sorry if I get terms wrong or just look stupid... This is a mac app so I am guessing it is different then iOS app development.
Here you have a recently written guide to doing exactly what you want to do
Let me know if you need some of it explained!

How do you put Game Center Achievements into your iPhone app?

I am very new to Xcode and Objective C. So I need help with the Game Center achievements. I have already set it up on the iTunes connect but don't know how to make them work in my game.
Also, I want to make it so if the user presses a button they get an achievement on Game Center. I have done nothing so far with Gamekit except for import the framework.
Thanks,Kevin
Apple has numerous videos and documentation you can look through to get this done...
https://developer.apple.com/devcenter/ios/gamecenter/
I don't recall the exact API call you will need but you can find it on the Apple developer portal.

Playing music on a Mac in lock screen and display off

I have an app with a behavior that I want to copy. The app can play music in the lock screen state. The app can also turn off the screen at this state. I'm not too sure if the app is placing the Mac in sleep mode but the white indicator light on the front of the Mac book is on but is not pulsing while the display is off.
I know how to play music and place the mac in the lock screen state using apple script. What I don't know how to do is turn off the display and have the indicator light turned on. This behavior is similar to when the Mac is in sleep mode. Any ideas as to how this can be done programmatically using objective-c and/or apple script?
I cannot use anything that is not documented by Apple. I am running the latest version of OSX Lion.
If you hold down the command, shift and eject buttons at the same time, the screen goes dark instantly. I just confirmed this in 10.7.1.
As for Applescripting Display Sleep, it's not trivial. I did find a probable solution in this thread:
http://macscripter.net/viewtopic.php?pid=135732#p135732
Give it a try and see if it accomplishes what you are looking for.