¡@

Home 

2014/10/15 ¤U¤È 10:12:55

iphone Programming Glossary: problems

gcc-4.2 failed with exit code 1 iphone

http://stackoverflow.com/questions/1248520/gcc-4-2-failed-with-exit-code-1-iphone

question As you can see from the many different responses this error is caused by many different problems . Luckily I have found the Meta Solution In xcode right click the error line and choose Open These Latest..

iPhone viewWillAppear not firing

http://stackoverflow.com/questions/131062/iphone-viewwillappear-not-firing

viewWillAppear not firing I've read numerous posts about people having problems with viewWillAppear when you do not create your view hierarchy just right. My problem is I can't figure..

AES Encryption for an NSString on the iPhone

http://stackoverflow.com/questions/1400246/aes-encryption-for-an-nsstring-on-the-iphone

improve this question Since you haven't posted any code it's difficult to know exactly which problems you're encountering. However the blog post you link to does seem to work pretty decently... aside from..

How to add a UIImage in MailComposer Sheet of MFMailComposeViewController

http://stackoverflow.com/questions/1527351/how-to-add-a-uiimage-in-mailcomposer-sheet-of-mfmailcomposeviewcontroller

NSData Base64 by Matt Gallagher I took the out of the name after copying it in because it gave me problems . Copy the .h and .m files into your project and be sure to #import the .h file where you plan on using..

iPhone reachability checking

http://stackoverflow.com/questions/1861656/iphone-reachability-checking

if remoteHostStatus ReachableViaCarrierDataNetwork NSLog @ cell This is giving me all sorts of problems. What am I doing wrong I'm an alright coder I just have a hard time when it comes time to figure out..

iPhone sending POST with NSURLConnection

http://stackoverflow.com/questions/2071788/iphone-sending-post-with-nsurlconnection

sending POST with NSURLConnection I'm having some problems with sending POST data to a PHP script with NSURLConnection. This is my code const char bytes NSString..

underline text in UIlabel

http://stackoverflow.com/questions/2711297/underline-text-in-uilabel

start point and length of each string in each line. And draw a line under it accordingly. I meet problems at how to figure out the length and start point forthe string. Can anybody help me on this I try to..

Adding view on StatusBar in iPhone

http://stackoverflow.com/questions/2833724/adding-view-on-statusbar-in-iphone

your main window the UIWindow in your Application Delegate loose key status you will encounter problems with scrolling scrollviews to top when tapping the status bar etc. Edit Here's an image you can use..

Install xCode 3.2.3 w/ iPhone SDK 4, get “Base SDK missing”, can't see other SDKs

http://stackoverflow.com/questions/3161385/install-xcode-3-2-3-w-iphone-sdk-4-get-base-sdk-missing-cant-see-other-sdk

of Xcode 3.2.3 with iPhone SDK 4 download link reg reqd and then encountered one or both of these problems In your previously working xCode iPhone project you get Base SDK Missing somewhere. Something like this..

EXC_BAD_ACCESS signal received

http://stackoverflow.com/questions/327082/exc-bad-access-signal-received

The best way to track these things down and a good idea anyway even if there are no apparent problems is to run the app in the Instruments tool especially with the Leaks option. share improve this answer..

iPhone App Minus App Store?

http://stackoverflow.com/questions/37464/iphone-app-minus-app-store

App Minus App Store I've been looking into iPhone development but I've been having problems coming up with the answer to a certain question. If I create an application on my Mac is there any way..

iPhone app in landscape mode

http://stackoverflow.com/questions/402/iphone-app-in-landscape-mode

irrelevant now It is EXTREMELY DIFFICULT to make this work fully properly there are at least three problems bugs at play. try this .. interface builder landscape design Note in particular that where it says and..

Round two corners in UIView

http://stackoverflow.com/questions/4847163/round-two-corners-in-uiview

posted a question about rounding just two corners of a view and got a great response but am having problems implementing it. Here is my drawRect method void drawRect CGRect rect super drawRect rect Should I uncomment..

Lazy load images in UITableViewCell

http://stackoverflow.com/questions/531482/lazy-load-images-in-uitableviewcell

this behavior. Thanks. Edit Trying to cache images in an NSMutableDictionary object creates problems when the user scrolls fast. I am getting images only when scrolling completely stops and clearing out..

UITableView and keyboard scrolling issue

http://stackoverflow.com/questions/594181/uitableview-and-keyboard-scrolling-issue

of trial and error I'm giving up and asking the question. I've seen a lot of people with similar problems but can't get all the answers to work right. I have a UITableView which is composed of custom cells...

Make movie file with picture Array and song file, using AVAsset

http://stackoverflow.com/questions/6061092/make-movie-file-with-picture-array-and-song-file-using-avasset

perfect I have my movie with my picture. However when I try to add some audio tracks I have lot of problems. To understand I put my code When I call this method picture array and song file are ready void writeImagesToMovieAtPath..

performSelector may cause a leak because its selector is unknown

http://stackoverflow.com/questions/7017281/performselector-may-cause-a-leak-because-its-selector-is-unknown

this is the same warning will occur with performSelector withObject and you could run into similar problems with not declaring how that method consumes parameters. ARC allows for declaring consumed parameters..

Animate change of view controllers without using navigation controller stack, subviews or modal controllers?

http://stackoverflow.com/questions/8146253/animate-change-of-view-controllers-without-using-navigation-controller-stack-su

again places a view controller on top of another and while it doesn't have the event passing problems described above it doesn't really 'swap' the view controller it stacks it. Storyboards are limited to..

To ARC or not to ARC? What are the pros and cons?

http://stackoverflow.com/questions/8760431/to-arc-or-not-to-arc-what-are-the-pros-and-cons

you did not follow correct KVC naming and you intermix ARC and non ARC code you will have memory problems. ARC uses KVC naming to make decisions about memory management. If it's all ARC code then it doesn't.. your code uses ARC and you violate the Three Magic Words all over the place you'll still have no problems. Shocking to say but there you go. ARC might retain some things that you didn't mean it to retain but..

gcc-4.2 failed with exit code 1 iphone

http://stackoverflow.com/questions/1248520/gcc-4-2-failed-with-exit-code-1-iphone

Any thoughts iphone gcc exit code share improve this question As you can see from the many different responses this error is caused by many different problems . Luckily I have found the Meta Solution In xcode right click the error line and choose Open These Latest Results as Transcript Text File . This will open the real..

iPhone viewWillAppear not firing

http://stackoverflow.com/questions/131062/iphone-viewwillappear-not-firing

viewWillAppear not firing I've read numerous posts about people having problems with viewWillAppear when you do not create your view hierarchy just right. My problem is I can't figure out what that means. If I create a RootViewController and..

AES Encryption for an NSString on the iPhone

http://stackoverflow.com/questions/1400246/aes-encryption-for-an-nsstring-on-the-iphone

kCCDecrypt. iphone objective c encryption nsstring aes share improve this question Since you haven't posted any code it's difficult to know exactly which problems you're encountering. However the blog post you link to does seem to work pretty decently... aside from the extra comma in each call to CCCrypt which caused compile..

How to add a UIImage in MailComposer Sheet of MFMailComposeViewController

http://stackoverflow.com/questions/1527351/how-to-add-a-uiimage-in-mailcomposer-sheet-of-mfmailcomposeviewcontroller

mostly C though but the simplest ObjC one I found was called NSData Base64 by Matt Gallagher I took the out of the name after copying it in because it gave me problems . Copy the .h and .m files into your project and be sure to #import the .h file where you plan on using it. Then code like this will get an image into your email..

iPhone reachability checking

http://stackoverflow.com/questions/1861656/iphone-reachability-checking

if remoteHostStatus ReachableViaWiFiNetwork NSLog @ wifi else if remoteHostStatus ReachableViaCarrierDataNetwork NSLog @ cell This is giving me all sorts of problems. What am I doing wrong I'm an alright coder I just have a hard time when it comes time to figure out what needs to be put where to enable what I want to do regardless..

iPhone sending POST with NSURLConnection

http://stackoverflow.com/questions/2071788/iphone-sending-post-with-nsurlconnection

sending POST with NSURLConnection I'm having some problems with sending POST data to a PHP script with NSURLConnection. This is my code const char bytes NSString stringWithFormat @ xml version 1.0 n mydata @ mydata data..

underline text in UIlabel

http://stackoverflow.com/questions/2711297/underline-text-in-uilabel

for just text rendering. My thoughts was to figure out the start point and length of each string in each line. And draw a line under it accordingly. I meet problems at how to figure out the length and start point forthe string. Can anybody help me on this I try to use UILabel textRectForBounds limitedToNumberOfLines this should..

Adding view on StatusBar in iPhone

http://stackoverflow.com/questions/2833724/adding-view-on-statusbar-in-iphone

status by using void makeKeyAndVisible or similar. If you make your main window the UIWindow in your Application Delegate loose key status you will encounter problems with scrolling scrollviews to top when tapping the status bar etc. Edit Here's an image you can use as a background Also updated the code with a stretchable UIImage..

Install xCode 3.2.3 w/ iPhone SDK 4, get “Base SDK missing”, can't see other SDKs

http://stackoverflow.com/questions/3161385/install-xcode-3-2-3-w-iphone-sdk-4-get-base-sdk-missing-cant-see-other-sdk

If you're here you've probably installed the final version of Xcode 3.2.3 with iPhone SDK 4 download link reg reqd and then encountered one or both of these problems In your previously working xCode iPhone project you get Base SDK Missing somewhere. Something like this In a related but more general observation none of the previously..

EXC_BAD_ACCESS signal received

http://stackoverflow.com/questions/327082/exc-bad-access-signal-received

iPhone App Minus App Store?

http://stackoverflow.com/questions/37464/iphone-app-minus-app-store

App Minus App Store I've been looking into iPhone development but I've been having problems coming up with the answer to a certain question. If I create an application on my Mac is there any way I can get it to run on an iPhone without going through the..

iPhone app in landscape mode

http://stackoverflow.com/questions/402/iphone-app-in-landscape-mode

original discussion and solution to repeat this is totally irrelevant now It is EXTREMELY DIFFICULT to make this work fully properly there are at 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..

Round two corners in UIView

http://stackoverflow.com/questions/4847163/round-two-corners-in-uiview

two corners in UIView A little while ago I posted a question about rounding just two corners of a view and got a great response but am having problems implementing it. Here is my drawRect method void drawRect CGRect rect super drawRect rect Should I uncomment this int radius 5 CGContextRef context UIGraphicsGetCurrentContext..

Lazy load images in UITableViewCell

http://stackoverflow.com/questions/531482/lazy-load-images-in-uitableviewcell

are not loaded again. Can someone please tell me how to duplicate this behavior. Thanks. Edit Trying to cache images in an NSMutableDictionary object creates problems when the user scrolls fast. I am getting images only when scrolling completely stops and clearing out the cache on memory warning. But the app invariably gets a..

UITableView and keyboard scrolling issue

http://stackoverflow.com/questions/594181/uitableview-and-keyboard-scrolling-issue

and keyboard scrolling issue after a lot of trial and error I'm giving up and asking the question. I've seen a lot of people with similar problems but can't get all the answers to work right. I have a UITableView which is composed of custom cells. The cells are made of 5 text fields next to each other sort..

Make movie file with picture Array and song file, using AVAsset

http://stackoverflow.com/questions/6061092/make-movie-file-with-picture-array-and-song-file-using-avasset

a picture array i used the big post by zoul here . All is perfect I have my movie with my picture. However when I try to add some audio tracks I have lot of problems. To understand I put my code When I call this method picture array and song file are ready void writeImagesToMovieAtPath NSString path withSize CGSize size NSString..

performSelector may cause a leak because its selector is unknown

http://stackoverflow.com/questions/7017281/performselector-may-cause-a-leak-because-its-selector-is-unknown

and crash. Additional Arguments One consideration is that this is the same warning will occur with performSelector withObject and you could run into similar problems with not declaring how that method consumes parameters. ARC allows for declaring consumed parameters and if the method consumes the parameter you'll probably eventually..

Animate change of view controllers without using navigation controller stack, subviews or modal controllers?

http://stackoverflow.com/questions/8146253/animate-change-of-view-controllers-without-using-navigation-controller-stack-su

against doing this . Presenting a modal view controller again places a view controller on top of another and while it doesn't have the event passing problems described above it doesn't really 'swap' the view controller it stacks it. Storyboards are limited to iOS 5 and are almost ideal but cannot be used in all projects...

To ARC or not to ARC? What are the pros and cons?

http://stackoverflow.com/questions/8760431/to-arc-or-not-to-arc-what-are-the-pros-and-cons

This is fairly rare but sometimes it's used to pack data. If you did not follow correct KVC naming and you intermix ARC and non ARC code you will have memory problems. ARC uses KVC naming to make decisions about memory management. If it's all ARC code then it doesn't matter because it will do it the same wrong on both sides... it's important to understand why and why not. First if all of your code uses ARC and you violate the Three Magic Words all over the place you'll still have no problems. Shocking to say but there you go. ARC might retain some things that you didn't mean it to retain but it'll release them as well so it'll never matter. If I were..

gcc-4.2 failed with exit code 1 iphone

http://stackoverflow.com/questions/1248520/gcc-4-2-failed-with-exit-code-1-iphone

share improve this question As you can see from the many different responses this error is caused by many different problems . Luckily I have found the Meta Solution In xcode right click the error line and choose Open These Latest Results as Transcript..

iPhone viewWillAppear not firing

http://stackoverflow.com/questions/131062/iphone-viewwillappear-not-firing

viewWillAppear not firing I've read numerous posts about people having problems with viewWillAppear when you do not create your view hierarchy just right. My problem is I can't figure out what that means...

AES Encryption for an NSString on the iPhone

http://stackoverflow.com/questions/1400246/aes-encryption-for-an-nsstring-on-the-iphone

nsstring aes share improve this question Since you haven't posted any code it's difficult to know exactly which problems you're encountering. However the blog post you link to does seem to work pretty decently... aside from the extra comma in..

How to add a UIImage in MailComposer Sheet of MFMailComposeViewController

http://stackoverflow.com/questions/1527351/how-to-add-a-uiimage-in-mailcomposer-sheet-of-mfmailcomposeviewcontroller

I found was called NSData Base64 by Matt Gallagher I took the out of the name after copying it in because it gave me problems . Copy the .h and .m files into your project and be sure to #import the .h file where you plan on using it. Then code like..

iPhone reachability checking

http://stackoverflow.com/questions/1861656/iphone-reachability-checking

NSLog @ wifi else if remoteHostStatus ReachableViaCarrierDataNetwork NSLog @ cell This is giving me all sorts of problems. What am I doing wrong I'm an alright coder I just have a hard time when it comes time to figure out what needs to be put..

iPhone sending POST with NSURLConnection

http://stackoverflow.com/questions/2071788/iphone-sending-post-with-nsurlconnection

sending POST with NSURLConnection I'm having some problems with sending POST data to a PHP script with NSURLConnection. This is my code const char bytes NSString stringWithFormat..

underline text in UIlabel

http://stackoverflow.com/questions/2711297/underline-text-in-uilabel

was to figure out the start point and length of each string in each line. And draw a line under it accordingly. I meet problems at how to figure out the length and start point forthe string. Can anybody help me on this I try to use UILabel textRectForBounds..

Adding view on StatusBar in iPhone

http://stackoverflow.com/questions/2833724/adding-view-on-statusbar-in-iphone

or similar. If you make your main window the UIWindow in your Application Delegate loose key status you will encounter problems with scrolling scrollviews to top when tapping the status bar etc. Edit Here's an image you can use as a background Also..

Install xCode 3.2.3 w/ iPhone SDK 4, get “Base SDK missing”, can't see other SDKs

http://stackoverflow.com/questions/3161385/install-xcode-3-2-3-w-iphone-sdk-4-get-base-sdk-missing-cant-see-other-sdk

the final version of Xcode 3.2.3 with iPhone SDK 4 download link reg reqd and then encountered one or both of these problems In your previously working xCode iPhone project you get Base SDK Missing somewhere. Something like this In a related but..

EXC_BAD_ACCESS signal received

http://stackoverflow.com/questions/327082/exc-bad-access-signal-received

iPhone App Minus App Store?

http://stackoverflow.com/questions/37464/iphone-app-minus-app-store

App Minus App Store I've been looking into iPhone development but I've been having problems coming up with the answer to a certain question. If I create an application on my Mac is there any way I can get it to run..

iPhone app in landscape mode

http://stackoverflow.com/questions/402/iphone-app-in-landscape-mode

this is totally irrelevant now It is EXTREMELY DIFFICULT to make this work fully properly there are at 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..

Round two corners in UIView

http://stackoverflow.com/questions/4847163/round-two-corners-in-uiview

little while ago I posted a question about rounding just two corners of a view and got a great response but am having problems implementing it. Here is my drawRect method void drawRect CGRect rect super drawRect rect Should I uncomment this int radius..

Lazy load images in UITableViewCell

http://stackoverflow.com/questions/531482/lazy-load-images-in-uitableviewcell

tell me how to duplicate this behavior. Thanks. Edit Trying to cache images in an NSMutableDictionary object creates problems when the user scrolls fast. I am getting images only when scrolling completely stops and clearing out the cache on memory..

UITableView and keyboard scrolling issue

http://stackoverflow.com/questions/594181/uitableview-and-keyboard-scrolling-issue

issue after a lot of trial and error I'm giving up and asking the question. I've seen a lot of people with similar problems but can't get all the answers to work right. I have a UITableView which is composed of custom cells. The cells are made..

Make movie file with picture Array and song file, using AVAsset

http://stackoverflow.com/questions/6061092/make-movie-file-with-picture-array-and-song-file-using-avasset

zoul here . All is perfect I have my movie with my picture. However when I try to add some audio tracks I have lot of problems. To understand I put my code When I call this method picture array and song file are ready void writeImagesToMovieAtPath..

performSelector may cause a leak because its selector is unknown

http://stackoverflow.com/questions/7017281/performselector-may-cause-a-leak-because-its-selector-is-unknown

is that this is the same warning will occur with performSelector withObject and you could run into similar problems with not declaring how that method consumes parameters. ARC allows for declaring consumed parameters and if the method consumes..

Animate change of view controllers without using navigation controller stack, subviews or modal controllers?

http://stackoverflow.com/questions/8146253/animate-change-of-view-controllers-without-using-navigation-controller-stack-su

a modal view controller again places a view controller on top of another and while it doesn't have the event passing problems described above it doesn't really 'swap' the view controller it stacks it. Storyboards are limited to iOS 5 and are almost..

To ARC or not to ARC? What are the pros and cons?

http://stackoverflow.com/questions/8760431/to-arc-or-not-to-arc-what-are-the-pros-and-cons

used to pack data. If you did not follow correct KVC naming and you intermix ARC and non ARC code you will have memory problems. ARC uses KVC naming to make decisions about memory management. If it's all ARC code then it doesn't matter because it will.. not. First if all of your code uses ARC and you violate the Three Magic Words all over the place you'll still have no problems. Shocking to say but there you go. ARC might retain some things that you didn't mean it to retain but it'll release them..

UITableView Drawing Problems When ReloadData Is Called

http://stackoverflow.com/questions/1037508/uitableview-drawing-problems-when-reloaddata-is-called

Drawing Problems When ReloadData Is Called I have a pretty large list of 'items' up to 250 entries which is constantly changing. The list..

undo all changes made in the child view controller

http://stackoverflow.com/questions/10443754/undo-all-changes-made-in-the-child-view-controller

the cancelAction is linked to an cancel button on the VCBook which used to undo all the changes made in the VCBook. Problems is here First in the VCAuthor I edit the authorName in an UITextfiled authorNameTextField from Obama to Big Obama and save..

Implementing Static Libraries In iPhone

http://stackoverflow.com/questions/1124579/implementing-static-libraries-in-iphone

Static Libraries In iPhone I have created a static library following this link . But I am facing Problems in using the library. For reference on how to use static libraries in an iPhone project I followed this link . But I am..

iOS7 / iOS6 Conditional Rotation Portrait / Landscape for different sections of App

http://stackoverflow.com/questions/19041650/ios7-ios6-conditional-rotation-portrait-landscape-for-different-sections-of

lastAccepted BOOL isLastAcceptedLandscape return UIDeviceOrientationIsLandscape lastAccepted Current Problems Device rotations are always required after a view has loaded for the user going to Landscape mode from Portrait and vice..

Problems with UINavigationController inside of UITabBarController, viewWillAppear not called

http://stackoverflow.com/questions/3063610/problems-with-uinavigationcontroller-inside-of-uitabbarcontroller-viewwillappea

with UINavigationController inside of UITabBarController viewWillAppear not called As an overview I'm having issues with..

UITextView in a UITableViewCell smooth auto-resize shows and hides keyboard on iPad, but works on iPhone

http://stackoverflow.com/questions/4015557/uitextview-in-a-uitableviewcell-smooth-auto-resize-shows-and-hides-keyboard-on-i

textView.frame.origin.x textView.frame.origin.y textView.frame.size.width 44 12 return CGFloat height The Problems So here's what's happening This code is working 100 properly on my iPhone and in the iPhone simulator. As I type the text..

Having Problems With UISearchBar in UITableViewController

http://stackoverflow.com/questions/6501032/having-problems-with-uisearchbar-in-uitableviewcontroller

Problems With UISearchBar in UITableViewController I am trying to add a UISearchBar to my UITableView with this tutorial http www.iphonesdkarticles.com..

Displaying Lots Of RichText : Choosing the best option

http://stackoverflow.com/questions/6626294/displaying-lots-of-richtext-choosing-the-best-option

other options post them in the comments Custom Cells using NSAttributedString HTML DTAttributedTextView for each post Problems I used the NSAttributedString HTML categories in the app elsewhere and it was less then ideal creating an NSAttributedString..

Problems with fbDidLogin never called iOS

http://stackoverflow.com/questions/7044412/problems-with-fbdidlogin-never-called-ios

with fbDidLogin never called iOS I'm having problems with my app saving the access_token. The problem is when an iPhone..

IOS: dynamic height with a custom uitableviewcell

http://stackoverflow.com/questions/7128215/ios-dynamic-height-with-a-custom-uitableviewcell

method unlike its variants doesn't cause any scrolling. See stackoverflow question and answer for useful background. Problems arise if you have to do a lot of work to calculate heights and you have hundreds or thousands of rows. In one use case I..

Problems with legend in Core-Plot (pieChart)

http://stackoverflow.com/questions/7253533/problems-with-legend-in-core-plot-piechart

with legend in Core Plot pieChart I have a problem drawing the legend of a pieChart with Core Plot because the name of..