Questions tagged as 'objective-c'

1
answer

Objective C - How to change the contents of an Image View after performing an animation

Implemented an animation in Image View and would like to know how to change its image exactly after the animation ends. Example: - (IBAction)play:(id)sender { //ANIM . . . [UIView beginAnimations:nil context:nil]; [UIView...
asked by 27.07.2016 / 15:38
1
answer

IOS - how do I find the screen size of the user's device?

I would like to know if there is a way to find out the size of the screen that the user is using or the model of your iPhone via Objectice-C.     
asked by 28.03.2016 / 20:01
1
answer

How do I run a code with the application closed or minimized?

I'm trying to run code that keeps the screen always on, it works perfectly when I'm inside the APP, but if I minimize or close it, it will not work. NOTE: I am using UIKit.framework code that keeps the screen lit: [[UIApplication sharedA...
asked by 05.02.2016 / 19:52
1
answer

Doubt about NS_ENUM

I have the following question about NS_ENUM I'm creating one with three options: typedef NS_ENUM(NSInteger, VersionStatus) { OPTION1, OPTION2, OPTION3 }; How do I use else within a switch? How will the comparison parameter c...
asked by 26.02.2016 / 20:51
1
answer

What's wrong with the code below?

When I clicked on "Run" in Xcode to run the code and see if everything is right, I said "Build Succeeded", but in the code output the following appears:    2015-12-11 17: 35: 38,289 prog1 [36561: 1080062] The value of myfraction   is: (lldb)...
asked by 11.12.2015 / 21:41
1
answer

IOS - How to send an E-mail informing the recipient?

I'm trying to send an e-mail with the recipient already informed, but I do not know how to pass this information in the code. Code: -(IBAction) mail : (id) sender{ mailComposer = [[MFMailComposeViewController alloc] init]; mailCompo...
asked by 15.02.2016 / 19:42
1
answer

IOS - How to program the navigation between ViewController in Objective-C?

I want to navigate between the ViewController of an app by clicking a button and switching from one to another for example. But I did not want to do this for the .storyboard, I want to do it directly via code. It's possible? If so, how can I do...
asked by 19.02.2016 / 19:08
1
answer

Add UITabbarController without storyboard

How do I add a UITabbarcontroller with UINavigationController , but I would like to add in a second view because I have the login login screen and would not like to display the tabbar in this first view, I found some examples but everyone add...
asked by 25.08.2015 / 18:58
1
answer

How to load data from a specific mysql user in xcode?

My code is working, I'm getting the data I need, but I have to write the email of the user who wants the data in my php file. I wanted to receive the user data that the email is typed into a textField in my project. How could I do that? My ph...
asked by 19.06.2015 / 10:13
1
answer

AFNetworkReachabilityStatus with inconsistent values when re-establishing connection

I'm trying to use the RestKit framework to observe the changes in the connection through the setReachabilityStatusChangeBlock method of the AFHTTPClient class. Once the application is started I get the AFNetworkReachabilityStatu...
asked by 28.05.2015 / 10:44