iphone Programming Glossary: interface
How to check for an active Internet Connection on iPhone SDK? http://stackoverflow.com/questions/1083701/how-to-check-for-an-active-internet-connection-on-iphone-sdk Reachability.m to the project found here https github.com tonymillion Reachability 3 Update the interface section #import Reachability.h Add this to the interface in the .m file of your view controller @interface.. tonymillion Reachability 3 Update the interface section #import Reachability.h Add this to the interface in the .m file of your view controller @interface MyViewController Reachability internetReachableFoo.. section #import Reachability.h Add this to the interface in the .m file of your view controller @interface MyViewController Reachability internetReachableFoo @end 4 Then implement this method in the .m file..
How to make a UITextField move up when keyboard is present http://stackoverflow.com/questions/1126726/how-to-make-a-uitextfield-move-up-when-keyboard-is-present just for when the keyboard comes up. Even though it's not needed I feel like it provides a better interface because then the user can scroll and change textboxes for example. I've got it working where I change..
How to access SOAP services from iPhone http://stackoverflow.com/questions/204465/how-to-access-soap-services-from-iphone and they only expose it as SOAP it's unfortunately not an option to switch to another type of interface e.g. REST based API . Gero iphone ios web services soap wsdl share improve this question One word..
iPhone App Minus App Store? http://stackoverflow.com/questions/37464/iphone-app-minus-app-store that if you wish to remove the application later you cannot do so via the standard SpringBoard interface and you'll need to use SSH and update the SpringBoard ssh root@jasoniphone.local rm r Applications AccelerometerGraph.app..
What's the best way to communicate between view controllers? http://stackoverflow.com/questions/569940/whats-the-best-way-to-communicate-between-view-controllers your view controller For communicating back up the hierarchy use loose coupling Define a generic interface for observers like delegation This slide is then followed by what appears to be a place holder slide.. in an object what would the implementation look like for when the lecturer says Define a generic interface for observers like delegation . A pseudocode example would be awfully helpful here if possible. objective.. can easily use it in my own application assuming BookWarehouse and CheckoutController are generic interfaces i.e. protocols that I can implement @interface MyBookWarehouse NSObject BookWarehouse ... @end @implementation..
How do I create delegates in Objective-C? http://stackoverflow.com/questions/626898/how-do-i-create-delegates-in-objective-c on NSObject. For example continuing the example above this is paraphrased from NSWindow.h @interface NSObject NSWindowNotifications void windowDidMove NSNotification notification ... other methods here.. void windowDidMove NSNotification notification ... other methods here @end This is analogous to an interface or abstract base class as it creates a special type for your delegate NSWindowNotifications in this.. NSWindowNotifications in this case. Delegate implementors would have to adopt this protocol @interface MyDelegate NSWindowNotifications ... @end And then implement the methods in the protocol. For methods..
Locking the Fields in MFMailComposeViewController http://stackoverflow.com/questions/6284599/locking-the-fields-in-mfmailcomposeviewcontroller images that I created for user feedback. It has both @2x and regular. You will have to go into interface builder and create the label though that says sending test drive.. . Its already in the code but I didnt.. the CFNetwork framework to your project 3. Make sure to attach the UILabel name loadingLabel in interface builder 4. The username and password that the code is refering to is an smtp server. If you dont have..
UIDevice uniqueIdentifier Deprecated - What To Do Now? http://stackoverflow.com/questions/6993325/uidevice-uniqueidentifier-deprecated-what-to-do-now You could query the MAC and use that as UUID. Edit One needs to always query the MAC of the same interface of course. I guess the best bet is with en0 . The MAC is always present even if the interface has no.. same interface of course. I guess the best bet is with en0 . The MAC is always present even if the interface has no IP is down. Edit 2 As was pointed out by others the preferred solution since iOS 6 is UIDevice..
Has anyone implemented the PayPal API through a native iPhone app? http://stackoverflow.com/questions/779423/has-anyone-implemented-the-paypal-api-through-a-native-iphone-app Apple will not allow payments directly within apps using paypal. You have to re direct to a web interface. iphone objective c cocoa touch paypal share improve this question Re Update As answered below..
iPhone Data Usage Tracking/Monitoring http://stackoverflow.com/questions/7946699/iphone-data-usage-tracking-monitoring iphone ios sockets share improve this question The thing is that pdp_ip0 is one of interfaces all pdpXXX are WWAN interfaces dedicated to different functions voicemail general networking interface... share improve this question The thing is that pdp_ip0 is one of interfaces all pdpXXX are WWAN interfaces dedicated to different functions voicemail general networking interface. i read in apple forum that.. all pdpXXX are WWAN interfaces dedicated to different functions voicemail general networking interface. i read in apple forum that The OS does not keep network statistics on a process by process basis. As..
Is there any ready-made calendar control for iPhone apps? http://stackoverflow.com/questions/997779/is-there-any-ready-made-calendar-control-for-iphone-apps up something ready since this is a departure on the original project plans . iphone cocoa touch interface uikit calendar share improve this question Yes. These are the option I am aware of EDIT as of May..
How to make a UITextField move up when keyboard is present http://stackoverflow.com/questions/1126726/how-to-make-a-uitextfield-move-up-when-keyboard-is-present the active text field Ideally as much of the setup of the components as possible will be done in Interface Builder. I'd like to only write code for what needs it. Note the UIView or UIScrollView that I'm working..
iPhone Keyboard Covers UITextField http://stackoverflow.com/questions/1247113/iphone-keyboard-covers-uitextfield Keyboard Covers UITextField I have an app where in Interface Builder I set up a UIView that has a text field near the bottom of the view. When I run the app and..
Placeholder in UITextView http://stackoverflow.com/questions/1328638/placeholder-in-uitextview release _placeholder nil super dealloc #endif void awakeFromNib super awakeFromNib Use Interface Builder User Defined Runtime Attributes to set placeholder and placeholderColor in Interface Builder... Use Interface Builder User Defined Runtime Attributes to set placeholder and placeholderColor in Interface Builder. if self.placeholder self setPlaceholder @ if self.placeholderColor self setPlaceholderColor..
How to create a multiline UITextfield? http://stackoverflow.com/questions/1345561/how-to-create-a-multiline-uitextfield you need to use UITextView instead of UITextField for display and editing of multiline text . In Interface Builder add a UITextView where you want it and select the editable box. It will be multiline by default...
IBOutlet and IBAction http://stackoverflow.com/questions/1643007/iboutlet-and-ibaction and IBOutlet are macros defined to denote variables and methods that can be referred to in Interface Builder. IBAction resolves to void and IBOutlet resolves to nothing but they signify to Xcode and Interface.. Builder. IBAction resolves to void and IBOutlet resolves to nothing but they signify to Xcode and Interface builder that these variables and methods can be used in Interface builder to link UI elements to your.. but they signify to Xcode and Interface builder that these variables and methods can be used in Interface builder to link UI elements to your code. If you're not going to be used Interface Builder at all then..
Bold & Non-Bold Text In A Single UILabel? http://stackoverflow.com/questions/3586871/bold-non-bold-text-in-a-single-uilabel look for Introduction to NSAttributedString for iOS 6 and Attributed strings for iOS using Interface Builder PS Above code it should work but it was brain compiled. I hope it is enough Old Answer for iOS5..
iPhone app in landscape mode http://stackoverflow.com/questions/402/iphone-app-in-landscape-mode mode from the start regardless of the position of the device Both programmatically and using the Interface Builder. iphone objective c share improve this question Exciting news As discovered by Andrew below.. landscape design Note in particular that where it says and you need to use shouldAutorotateToInterfaceOrientation properly everywhere it means everywhere all your fullscreen views. Hope it helps in this..
iOS SDK - Programmatically generate a PDF file http://stackoverflow.com/questions/4362734/ios-sdk-programmatically-generate-a-pdf-file fine for my needs. Second depending on the format layout of your PDF you might consider using Interface Builder to create a view that serves as a template for your PDF output. You would then write code to..
iPhone get SSID without private library http://stackoverflow.com/questions/5198716/iphone-get-ssid-without-private-library this #import SystemConfiguration CaptiveNetwork.h id fetchSSIDInfo NSArray ifs id CNCopySupportedInterfaces NSLog @ s Supported interfaces @ __func__ ifs id info nil for NSString ifnam in ifs info id CNCopyCurrentNetworkInfo.. the System Configuration dictionary. For example using scutil on my Mac scutil show State Network Interface en1 AirPort dictionary Power Status 1 SecureIBSSEnabled FALSE BSSID data 0xcafecafecafe SSID_STR XXXX..
What's the best way to communicate between view controllers? http://stackoverflow.com/questions/569940/whats-the-best-way-to-communicate-between-view-controllers push a controller onto the navigation controller. For an example of how to do this visually using Interface Builder take a look at this tutorial . Third and perhaps most importantly note that the best practices..
How to change UIPickerView height http://stackoverflow.com/questions/573979/how-to-change-uipickerview-height shorter PickerViews but setting a smaller frame doesn't seem to work and the frame is locked in Interface Builder. iphone cocoa touch uikit uipickerview share improve this question It seems obvious that..
Custom colors in UITabBar http://stackoverflow.com/questions/675433/custom-colors-in-uitabbar my own TabBar like view controller along with custom images would this violate Apple's Human Interface Guidelines iphone objective c share improve this question I found an answer to this at Silent Mac..
How do I draw a line on the iPhone? http://stackoverflow.com/questions/856354/how-do-i-draw-a-line-on-the-iphone say MyView.m. Now open up the Resources group and double click on MainWindow.xib to open it in Interface Builder. From here you should see a window named Window . Hit Cmd Shift L to bring up the Library and..
iPhone: How to load a View using a nib file created with Interface Builder http://stackoverflow.com/questions/863321/iphone-how-to-load-a-view-using-a-nib-file-created-with-interface-builder How to load a View using a nib file created with Interface Builder I'm trying to do something a bit elaborate but that should be possible so here is a challenge.. this is Create the Question1View object a as UIView subclass defining some IBOutlets. Create using Interface Builder the Question1View.xib HERE IS WHERE MY PROBLEM PROBABLY ARE . I set the both the ViewController..
Is there any ready-made calendar control for iPhone apps? http://stackoverflow.com/questions/997779/is-there-any-ready-made-calendar-control-for-iphone-apps month view in the built in Calendar application would be a best match. However the iPhone Human Interface Guidelines just mentions the Date Picker not the calendar so I believe there is nothing like that out..
How to check for an active Internet Connection on iPhone SDK? http://stackoverflow.com/questions/1083701/how-to-check-for-an-active-internet-connection-on-iphone-sdk it anywhere 2 Add Tony Million's version of Reachability.h and Reachability.m to the project found here https github.com tonymillion Reachability 3 Update the interface section #import Reachability.h Add this to the interface in the .m file of your view controller @interface MyViewController Reachability internetReachableFoo @end.. and Reachability.m to the project found here https github.com tonymillion Reachability 3 Update the interface section #import Reachability.h Add this to the interface in the .m file of your view controller @interface MyViewController Reachability internetReachableFoo @end 4 Then implement this method in the .m file of your view.. github.com tonymillion Reachability 3 Update the interface section #import Reachability.h Add this to the interface in the .m file of your view controller @interface MyViewController Reachability internetReachableFoo @end 4 Then implement this method in the .m file of your view controller which you can call Checks if we have..
How to make a UITextField move up when keyboard is present http://stackoverflow.com/questions/1126726/how-to-make-a-uitextfield-move-up-when-keyboard-is-present needs to function as normal. Edit I am adding the scroll bar just for when the keyboard comes up. Even though it's not needed I feel like it provides a better interface because then the user can scroll and change textboxes for example. I've got it working where I change the frame size of the UIScrollView when the keyboard goes..
How to access SOAP services from iPhone http://stackoverflow.com/questions/204465/how-to-access-soap-services-from-iphone Since the service I need to access is exposed by another party and they only expose it as SOAP it's unfortunately not an option to switch to another type of interface e.g. REST based API . Gero iphone ios web services soap wsdl share improve this question One word Don't. OK obviously that isn't a real answer. But still SOAP..
iPhone App Minus App Store? http://stackoverflow.com/questions/37464/iphone-app-minus-app-store these extra steps as a custom build step in your project. Note that if you wish to remove the application later you cannot do so via the standard SpringBoard interface and you'll need to use SSH and update the SpringBoard ssh root@jasoniphone.local rm r Applications AccelerometerGraph.app ssh mobile@jasoniphone.local uicache ..
What's the best way to communicate between view controllers? http://stackoverflow.com/questions/569940/whats-the-best-way-to-communicate-between-view-controllers what needs to be communicated Define input parameters for your view controller For communicating back up the hierarchy use loose coupling Define a generic interface for observers like delegation This slide is then followed by what appears to be a place holder slide where the lecturer then apparently demonstrates the best practices.. do this Give that we can only have one delegate set at a time in an object what would the implementation look like for when the lecturer says Define a generic interface for observers like delegation . A pseudocode example would be awfully helpful here if possible. objective c iphone cocoa touch delegates key value observing .. class and related GUI view objects and I can easily use it in my own application assuming BookWarehouse and CheckoutController are generic interfaces i.e. protocols that I can implement @interface MyBookWarehouse NSObject BookWarehouse ... @end @implementation MyBookWarehouse ... @end @interface MyCheckoutController..
How do I create delegates in Objective-C? http://stackoverflow.com/questions/626898/how-do-i-create-delegates-in-objective-c Informal Protocol This can be done as NSWindow does in a category on NSObject. For example continuing the example above this is paraphrased from NSWindow.h @interface NSObject NSWindowNotifications void windowDidMove NSNotification notification ... other methods here @end You would then use respondsToSelector as described above.. this @protocol NSWindowNotifications NSObject @optional void windowDidMove NSNotification notification ... other methods here @end This is analogous to an interface or abstract base class as it creates a special type for your delegate NSWindowNotifications in this case. Delegate implementors would have to adopt this protocol.. base class as it creates a special type for your delegate NSWindowNotifications in this case. Delegate implementors would have to adopt this protocol @interface MyDelegate NSWindowNotifications ... @end And then implement the methods in the protocol. For methods declared in the protocol as @optional like most delegate methods..
Locking the Fields in MFMailComposeViewController http://stackoverflow.com/questions/6284599/locking-the-fields-in-mfmailcomposeviewcontroller The zip file that you can download includes the overlay images that I created for user feedback. It has both @2x and regular. You will have to go into interface builder and create the label though that says sending test drive.. . Its already in the code but I didnt add it from code. So youll have to add it in IB. 1. Make.. framework you downloaded to your project. 2. Make sure to add the CFNetwork framework to your project 3. Make sure to attach the UILabel name loadingLabel in interface builder 4. The username and password that the code is refering to is an smtp server. If you dont have one create a gmail account and use gmail settings. If you..
UIDevice uniqueIdentifier Deprecated - What To Do Now? http://stackoverflow.com/questions/6993325/uidevice-uniqueidentifier-deprecated-what-to-do-now reliable per device identifier seems to be the MAC address. You could query the MAC and use that as UUID. Edit One needs to always query the MAC of the same interface of course. I guess the best bet is with en0 . The MAC is always present even if the interface has no IP is down. Edit 2 As was pointed out by others the preferred.. that as UUID. Edit One needs to always query the MAC of the same interface of course. I guess the best bet is with en0 . The MAC is always present even if the interface has no IP is down. Edit 2 As was pointed out by others the preferred solution since iOS 6 is UIDevice identifierForVendor . In most cases you should be able use..
Has anyone implemented the PayPal API through a native iPhone app? http://stackoverflow.com/questions/779423/has-anyone-implemented-the-paypal-api-through-a-native-iphone-app so I am assuming there is no issue. Re UPDATE I assumed wrong. Apple will not allow payments directly within apps using paypal. You have to re direct to a web interface. iphone objective c cocoa touch paypal share improve this question Re Update As answered below this code may still be useful for the purchase of physical goods..
iPhone Data Usage Tracking/Monitoring http://stackoverflow.com/questions/7946699/iphone-data-usage-tracking-monitoring sockaddr_in instead of sockaddr_dl . This crashes the application. iphone ios sockets share improve this question The thing is that pdp_ip0 is one of interfaces all pdpXXX are WWAN interfaces dedicated to different functions voicemail general networking interface. i read in apple forum that The OS does not keep network.. . This crashes the application. iphone ios sockets share improve this question The thing is that pdp_ip0 is one of interfaces all pdpXXX are WWAN interfaces dedicated to different functions voicemail general networking interface. i read in apple forum that The OS does not keep network statistics on a process by process.. this question The thing is that pdp_ip0 is one of interfaces all pdpXXX are WWAN interfaces dedicated to different functions voicemail general networking interface. i read in apple forum that The OS does not keep network statistics on a process by process basis. As such there's no exact solution to this problem. You can however..
Is there any ready-made calendar control for iPhone apps? http://stackoverflow.com/questions/997779/is-there-any-ready-made-calendar-control-for-iphone-apps could be used I could write one myself but I'd rather pick up something ready since this is a departure on the original project plans . iphone cocoa touch interface uikit calendar share improve this question Yes. These are the option I am aware of EDIT as of May 6 2010 1 GCCalendar 2 http github.com klazuka Kal 3 http code.google.com..
How to make a UITextField move up when keyboard is present http://stackoverflow.com/questions/1126726/how-to-make-a-uitextfield-move-up-when-keyboard-is-present needs to be implemented in order to automatically scroll to the active text field Ideally as much of the setup of the components as possible will be done in Interface Builder. I'd like to only write code for what needs it. Note the UIView or UIScrollView that I'm working with is brought up by a tabbar UITabBar which needs to..
iPhone Keyboard Covers UITextField http://stackoverflow.com/questions/1247113/iphone-keyboard-covers-uitextfield Keyboard Covers UITextField I have an app where in Interface Builder I set up a UIView that has a text field near the bottom of the view. When I run the app and try to enter text into that field the keyboard slides up overtop..
Placeholder in UITextView http://stackoverflow.com/questions/1328638/placeholder-in-uitextview nil _placeholderColor release _placeholderColor nil _placeholder release _placeholder nil super dealloc #endif void awakeFromNib super awakeFromNib Use Interface Builder User Defined Runtime Attributes to set placeholder and placeholderColor in Interface Builder. if self.placeholder self setPlaceholder @ if self.placeholderColor.. nil super dealloc #endif void awakeFromNib super awakeFromNib Use Interface Builder User Defined Runtime Attributes to set placeholder and placeholderColor in Interface Builder. if self.placeholder self setPlaceholder @ if self.placeholderColor self setPlaceholderColor UIColor lightGrayColor NSNotificationCenter defaultCenter..
How to create a multiline UITextfield? http://stackoverflow.com/questions/1345561/how-to-create-a-multiline-uitextfield
IBOutlet and IBAction http://stackoverflow.com/questions/1643007/iboutlet-and-ibaction builder ibaction iboutlet share improve this question IBAction and IBOutlet are macros defined to denote variables and methods that can be referred to in Interface Builder. IBAction resolves to void and IBOutlet resolves to nothing but they signify to Xcode and Interface builder that these variables and methods can be used.. variables and methods that can be referred to in Interface Builder. IBAction resolves to void and IBOutlet resolves to nothing but they signify to Xcode and Interface builder that these variables and methods can be used in Interface builder to link UI elements to your code. If you're not going to be used Interface Builder at.. IBAction resolves to void and IBOutlet resolves to nothing but they signify to Xcode and Interface builder that these variables and methods can be used in Interface builder to link UI elements to your code. If you're not going to be used Interface Builder at all then you don't need them in your code but if you are going to..
Bold & Non-Bold Text In A Single UILabel? http://stackoverflow.com/questions/3586871/bold-non-bold-text-in-a-single-uilabel that explain with more examples uses of NSAttributedString look for Introduction to NSAttributedString for iOS 6 and Attributed strings for iOS using Interface Builder PS Above code it should work but it was brain compiled. I hope it is enough Old Answer for iOS5 and below Use a CATextLayer with an NSAttributedString much..
iPhone app in landscape mode http://stackoverflow.com/questions/402/iphone-app-in-landscape-mode way to create an iPhone application that runs in landscape mode from the start regardless of the position of the device Both programmatically and using the Interface Builder. iphone objective c share improve this question Exciting news As discovered by Andrew below This problem has been fixed by Apple in 4.0 . Here is a.. least three problems bugs at play. try this .. interface builder landscape design Note in particular that where it says and you need to use shouldAutorotateToInterfaceOrientation properly everywhere it means everywhere all your fullscreen views. Hope it helps in this nightmare An important reminder of the ADDITIONAL well known..
iOS SDK - Programmatically generate a PDF file http://stackoverflow.com/questions/4362734/ios-sdk-programmatically-generate-a-pdf-file initially but once I got my project setup properly it worked fine for my needs. Second depending on the format layout of your PDF you might consider using Interface Builder to create a view that serves as a template for your PDF output. You would then write code to load the view fill in any data e.g. set text for UILabels etc...
iPhone get SSID without private library http://stackoverflow.com/questions/5198716/iphone-get-ssid-without-private-library xcode share improve this question On iOS 4.1 you can do this #import SystemConfiguration CaptiveNetwork.h id fetchSSIDInfo NSArray ifs id CNCopySupportedInterfaces NSLog @ s Supported interfaces @ __func__ ifs id info nil for NSString ifnam in ifs info id CNCopyCurrentNetworkInfo CFStringRef ifnam NSLog @ s @ @ __func__ ifnam.. Prior to 4.1 you might have some luck spelunking through the System Configuration dictionary. For example using scutil on my Mac scutil show State Network Interface en1 AirPort dictionary Power Status 1 SecureIBSSEnabled FALSE BSSID data 0xcafecafecafe SSID_STR XXXX SSID data 0x012345670123456701234567 Busy FALSE CHANNEL dictionary..
What's the best way to communicate between view controllers? http://stackoverflow.com/questions/569940/whats-the-best-way-to-communicate-between-view-controllers presentation for an example of how to programmatically push a controller onto the navigation controller. For an example of how to do this visually using Interface Builder take a look at this tutorial . Third and perhaps most importantly note that the best practices mentioned in the Stanford presentation are much easier to..
How to change UIPickerView height http://stackoverflow.com/questions/573979/how-to-change-uipickerview-height the height of UIPickerView Some applications seem to have shorter PickerViews but setting a smaller frame doesn't seem to work and the frame is locked in Interface Builder. iphone cocoa touch uikit uipickerview share improve this question It seems obvious that Apple doesn't particularly invite mucking with the default..
Custom colors in UITabBar http://stackoverflow.com/questions/675433/custom-colors-in-uitabbar is there any way to customize this Second even I were to create my own TabBar like view controller along with custom images would this violate Apple's Human Interface Guidelines iphone objective c share improve this question I found an answer to this at Silent Mac Design . I implemented this way First make a subclass of..
How do I draw a line on the iPhone? http://stackoverflow.com/questions/856354/how-do-i-draw-a-line-on-the-iphone C Class with Subclass of set to UIView and give it a name say MyView.m. Now open up the Resources group and double click on MainWindow.xib to open it in Interface Builder. From here you should see a window named Window . Hit Cmd Shift L to bring up the Library and drag a View component onto your window and position it so..
iPhone: How to load a View using a nib file created with Interface Builder http://stackoverflow.com/questions/863321/iphone-how-to-load-a-view-using-a-nib-file-created-with-interface-builder How to load a View using a nib file created with Interface Builder I'm trying to do something a bit elaborate but that should be possible so here is a challenge for all you experts out there this forum is pack of the lot.. the question that needs to be answered. The way I'm doing this is Create the Question1View object a as UIView subclass defining some IBOutlets. Create using Interface Builder the Question1View.xib HERE IS WHERE MY PROBLEM PROBABLY ARE . I set the both the ViewController and the View to be of class Question1View. I link the outlets..
Is there any ready-made calendar control for iPhone apps? http://stackoverflow.com/questions/997779/is-there-any-ready-made-calendar-control-for-iphone-apps I realized that a calendar just like the one displayed in the month view in the built in Calendar application would be a best match. However the iPhone Human Interface Guidelines just mentions the Date Picker not the calendar so I believe there is nothing like that out of the box. Is that true If so does anyone know of a third..
How to check for an active Internet Connection on iPhone SDK? http://stackoverflow.com/questions/1083701/how-to-check-for-an-active-internet-connection-on-iphone-sdk of Reachability.h and Reachability.m to the project found here https github.com tonymillion Reachability 3 Update the interface section #import Reachability.h Add this to the interface in the .m file of your view controller @interface MyViewController.. here https github.com tonymillion Reachability 3 Update the interface section #import Reachability.h Add this to the interface in the .m file of your view controller @interface MyViewController Reachability internetReachableFoo @end 4 Then implement.. Update the interface section #import Reachability.h Add this to the interface in the .m file of your view controller @interface MyViewController Reachability internetReachableFoo @end 4 Then implement this method in the .m file of your view controller..
How to make a UITextField move up when keyboard is present http://stackoverflow.com/questions/1126726/how-to-make-a-uitextfield-move-up-when-keyboard-is-present the scroll bar just for when the keyboard comes up. Even though it's not needed I feel like it provides a better interface because then the user can scroll and change textboxes for example. I've got it working where I change the frame size of..
How to access SOAP services from iPhone http://stackoverflow.com/questions/204465/how-to-access-soap-services-from-iphone exposed by another party and they only expose it as SOAP it's unfortunately not an option to switch to another type of interface e.g. REST based API . Gero iphone ios web services soap wsdl share improve this question One word Don't. OK obviously..
iPhone App Minus App Store? http://stackoverflow.com/questions/37464/iphone-app-minus-app-store in your project. Note that if you wish to remove the application later you cannot do so via the standard SpringBoard interface and you'll need to use SSH and update the SpringBoard ssh root@jasoniphone.local rm r Applications AccelerometerGraph.app..
What's the best way to communicate between view controllers? http://stackoverflow.com/questions/569940/whats-the-best-way-to-communicate-between-view-controllers input parameters for your view controller For communicating back up the hierarchy use loose coupling Define a generic interface for observers like delegation This slide is then followed by what appears to be a place holder slide where the lecturer.. set at a time in an object what would the implementation look like for when the lecturer says Define a generic interface for observers like delegation . A pseudocode example would be awfully helpful here if possible. objective c iphone cocoa.. view objects and I can easily use it in my own application assuming BookWarehouse and CheckoutController are generic interfaces i.e. protocols that I can implement @interface MyBookWarehouse NSObject BookWarehouse ... @end @implementation MyBookWarehouse..
How do I create delegates in Objective-C? http://stackoverflow.com/questions/626898/how-do-i-create-delegates-in-objective-c NSWindow does in a category on NSObject. For example continuing the example above this is paraphrased from NSWindow.h @interface NSObject NSWindowNotifications void windowDidMove NSNotification notification ... other methods here @end You would then.. NSObject @optional void windowDidMove NSNotification notification ... other methods here @end This is analogous to an interface or abstract base class as it creates a special type for your delegate NSWindowNotifications in this case. Delegate implementors.. type for your delegate NSWindowNotifications in this case. Delegate implementors would have to adopt this protocol @interface MyDelegate NSWindowNotifications ... @end And then implement the methods in the protocol. For methods declared in the protocol..
Locking the Fields in MFMailComposeViewController http://stackoverflow.com/questions/6284599/locking-the-fields-in-mfmailcomposeviewcontroller includes the overlay images that I created for user feedback. It has both @2x and regular. You will have to go into interface builder and create the label though that says sending test drive.. . Its already in the code but I didnt add it from code... 2. Make sure to add the CFNetwork framework to your project 3. Make sure to attach the UILabel name loadingLabel in interface builder 4. The username and password that the code is refering to is an smtp server. If you dont have one create a gmail..
UIDevice uniqueIdentifier Deprecated - What To Do Now? http://stackoverflow.com/questions/6993325/uidevice-uniqueidentifier-deprecated-what-to-do-now be the MAC address. You could query the MAC and use that as UUID. Edit One needs to always query the MAC of the same interface of course. I guess the best bet is with en0 . The MAC is always present even if the interface has no IP is down. Edit 2.. the MAC of the same interface of course. I guess the best bet is with en0 . The MAC is always present even if the interface has no IP is down. Edit 2 As was pointed out by others the preferred solution since iOS 6 is UIDevice identifierForVendor..
Has anyone implemented the PayPal API through a native iPhone app? http://stackoverflow.com/questions/779423/has-anyone-implemented-the-paypal-api-through-a-native-iphone-app I assumed wrong. Apple will not allow payments directly within apps using paypal. You have to re direct to a web interface. iphone objective c cocoa touch paypal share improve this question Re Update As answered below this code may still..
iPhone Data Usage Tracking/Monitoring http://stackoverflow.com/questions/7946699/iphone-data-usage-tracking-monitoring This crashes the application. iphone ios sockets share improve this question The thing is that pdp_ip0 is one of interfaces all pdpXXX are WWAN interfaces dedicated to different functions voicemail general networking interface. i read in apple.. iphone ios sockets share improve this question The thing is that pdp_ip0 is one of interfaces all pdpXXX are WWAN interfaces dedicated to different functions voicemail general networking interface. i read in apple forum that The OS does not keep.. is one of interfaces all pdpXXX are WWAN interfaces dedicated to different functions voicemail general networking interface. i read in apple forum that The OS does not keep network statistics on a process by process basis. As such there's no exact..
Is there any ready-made calendar control for iPhone apps? http://stackoverflow.com/questions/997779/is-there-any-ready-made-calendar-control-for-iphone-apps but I'd rather pick up something ready since this is a departure on the original project plans . iphone cocoa touch interface uikit calendar share improve this question Yes. These are the option I am aware of EDIT as of May 6 2010 1 GCCalendar..
How to make a UITextField move up when keyboard is present http://stackoverflow.com/questions/1126726/how-to-make-a-uitextfield-move-up-when-keyboard-is-present scroll to the active text field Ideally as much of the setup of the components as possible will be done in Interface Builder. I'd like to only write code for what needs it. Note the UIView or UIScrollView that I'm working with is brought..
iPhone Keyboard Covers UITextField http://stackoverflow.com/questions/1247113/iphone-keyboard-covers-uitextfield Keyboard Covers UITextField I have an app where in Interface Builder I set up a UIView that has a text field near the bottom of the view. When I run the app and try to enter text into..
Placeholder in UITextView http://stackoverflow.com/questions/1328638/placeholder-in-uitextview nil _placeholder release _placeholder nil super dealloc #endif void awakeFromNib super awakeFromNib Use Interface Builder User Defined Runtime Attributes to set placeholder and placeholderColor in Interface Builder. if self.placeholder.. super awakeFromNib Use Interface Builder User Defined Runtime Attributes to set placeholder and placeholderColor in Interface Builder. if self.placeholder self setPlaceholder @ if self.placeholderColor self setPlaceholderColor UIColor lightGrayColor..
How to create a multiline UITextfield? http://stackoverflow.com/questions/1345561/how-to-create-a-multiline-uitextfield search is correct you need to use UITextView instead of UITextField for display and editing of multiline text . In Interface Builder add a UITextView where you want it and select the editable box. It will be multiline by default. share improve..
IBOutlet and IBAction http://stackoverflow.com/questions/1643007/iboutlet-and-ibaction this question IBAction and IBOutlet are macros defined to denote variables and methods that can be referred to in Interface Builder. IBAction resolves to void and IBOutlet resolves to nothing but they signify to Xcode and Interface builder that.. to in Interface Builder. IBAction resolves to void and IBOutlet resolves to nothing but they signify to Xcode and Interface builder that these variables and methods can be used in Interface builder to link UI elements to your code. If you're not.. resolves to nothing but they signify to Xcode and Interface builder that these variables and methods can be used in Interface builder to link UI elements to your code. If you're not going to be used Interface Builder at all then you don't need them..
Bold & Non-Bold Text In A Single UILabel? http://stackoverflow.com/questions/3586871/bold-non-bold-text-in-a-single-uilabel uses of NSAttributedString look for Introduction to NSAttributedString for iOS 6 and Attributed strings for iOS using Interface Builder PS Above code it should work but it was brain compiled. I hope it is enough Old Answer for iOS5 and below Use a..
iPhone app in landscape mode http://stackoverflow.com/questions/402/iphone-app-in-landscape-mode runs in landscape mode from the start regardless of the position of the device Both programmatically and using the Interface Builder. iphone objective c share improve this question Exciting news As discovered by Andrew below This problem has.. this .. interface builder landscape design Note in particular that where it says and you need to use shouldAutorotateToInterfaceOrientation properly everywhere it means everywhere all your fullscreen views. Hope it helps in this nightmare An important..
iOS SDK - Programmatically generate a PDF file http://stackoverflow.com/questions/4362734/ios-sdk-programmatically-generate-a-pdf-file setup properly it worked fine for my needs. Second depending on the format layout of your PDF you might consider using Interface Builder to create a view that serves as a template for your PDF output. You would then write code to load the view fill..
iPhone get SSID without private library http://stackoverflow.com/questions/5198716/iphone-get-ssid-without-private-library On iOS 4.1 you can do this #import SystemConfiguration CaptiveNetwork.h id fetchSSIDInfo NSArray ifs id CNCopySupportedInterfaces NSLog @ s Supported interfaces @ __func__ ifs id info nil for NSString ifnam in ifs info id CNCopyCurrentNetworkInfo CFStringRef.. spelunking through the System Configuration dictionary. For example using scutil on my Mac scutil show State Network Interface en1 AirPort dictionary Power Status 1 SecureIBSSEnabled FALSE BSSID data 0xcafecafecafe SSID_STR XXXX SSID data 0x012345670123456701234567..
What's the best way to communicate between view controllers? http://stackoverflow.com/questions/569940/whats-the-best-way-to-communicate-between-view-controllers to programmatically push a controller onto the navigation controller. For an example of how to do this visually using Interface Builder take a look at this tutorial . Third and perhaps most importantly note that the best practices mentioned in the..
How to change UIPickerView height http://stackoverflow.com/questions/573979/how-to-change-uipickerview-height seem to have shorter PickerViews but setting a smaller frame doesn't seem to work and the frame is locked in Interface Builder. iphone cocoa touch uikit uipickerview share improve this question It seems obvious that Apple doesn't particularly..
Custom colors in UITabBar http://stackoverflow.com/questions/675433/custom-colors-in-uitabbar even I were to create my own TabBar like view controller along with custom images would this violate Apple's Human Interface Guidelines iphone objective c share improve this question I found an answer to this at Silent Mac Design . I implemented..
How do I draw a line on the iPhone? http://stackoverflow.com/questions/856354/how-do-i-draw-a-line-on-the-iphone and give it a name say MyView.m. Now open up the Resources group and double click on MainWindow.xib to open it in Interface Builder. From here you should see a window named Window . Hit Cmd Shift L to bring up the Library and drag a View component..
iPhone: How to load a View using a nib file created with Interface Builder http://stackoverflow.com/questions/863321/iphone-how-to-load-a-view-using-a-nib-file-created-with-interface-builder How to load a View using a nib file created with Interface Builder I'm trying to do something a bit elaborate but that should be possible so here is a challenge for all you experts.. The way I'm doing this is Create the Question1View object a as UIView subclass defining some IBOutlets. Create using Interface Builder the Question1View.xib HERE IS WHERE MY PROBLEM PROBABLY ARE . I set the both the ViewController and the View to..
Is there any ready-made calendar control for iPhone apps? http://stackoverflow.com/questions/997779/is-there-any-ready-made-calendar-control-for-iphone-apps one displayed in the month view in the built in Calendar application would be a best match. However the iPhone Human Interface Guidelines just mentions the Date Picker not the calendar so I believe there is nothing like that out of the box. Is that..
|