Hi All,
I've got a string with very unclean HTML. Before I parse it, I want to convert this:
<TABLE><TR><TD width="33%" nowrap=1><font size="1" face="Arial">
NE
</font> </TD>
<TD width="33%" nowrap=1><font size="1" face="Arial">
DEK
</font> </TD>
<TD width="33%" nowrap=1><font size="1" face="Arial">
143
</font> </TD>
</TR></TABLE>
in...
Hi,
I am facing a problem where-in I cannot select videos from the photo album in iPhone 2G/3G device. The default photos application does show videos and is capable of playing them, which in turn means that UIImagePickerController should clearly be capable of showing videos in photo album and selecting them.
I have coded this to deter...
During inAppPurchase, the storeKit will ask the username and password
even though i set...
[[UIApplication sharedApplication] setStatusBarOrientation:UIInterfaceOrientationLandscapeRight];
It ask Username and password in Portrait Mode... In general How to solve this kind of issue.
UPDATED : But the InAppPurchase message on successfu...
hello, i want to add a 414 X 210 size view to an alert view instead of a normal alert view display. I used
MyTicketAlert = [[UIAlertView alloc] initWithTitle:@"NEW TICKET"message:@"Ticket Generated Successfully\n GOOD LUCK!!" delegate:self cancelButtonTitle:nil otherButtonTitles:@"OK", nil];
[MyTicketAlert setBackgroundColor:[UIColor...
I execute a core data fetch which specifies a predicate as follows:
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"identifier IN %@", favoritesIDs];
When there are duplicate items in the favoriteIDs array, the fetch request only returns 1 managed object. How can I ensure that more than one instance is fetched? Thank you.
...
I'd like to do something when a particular tab appears. Meaning, the user has clicked the tab view's tab button. viewDidAppear doesn't fire when this happens. How else can I hook into the tab click event?
...
The method:
- (MKAnnotationView *) mapView:(MKMapView *)_mapView viewForAnnotation:(AddressNote*) annotation
is called each time a pin is plotted on a MKMapView. Is there anything called once all pins have been plotted?
...
I've got the following line of code in one of my Objective-C methods:
if (self.rule.sunday == YES) { do some stuff... }
The line produces the following compiler warning:
Comparison between pointer and integer
It's just a warning, so it's not life-threatening, but it's driving me nuts. Clearly there is some basic concept about integ...
Hello,
I want to develop an application for iPhone. I have developed some apps before. I need to change DNS settings. Is it possible and how can I do and if it's possible, is it applicable only to wi-fi ? I want to change it for wi-fi and 3G, EDGE, etc.
Thanks.
...
Is there a way I can check to see if a value is NULL/Nil before assigning it to a BOOL?
For example, I have a value in a NSDictionary that can be either TRUE/FALSE/NULL
mySTUser.current_user_following = [[results objectForKey:@"current_user_following"]boolValue];
When the value is NULL I get the following error
*** Terminating app ...
Hi,
I subclassed UIScrollView (IPhone SDK) and overrode the (void)layoutSubviews; method.
I noticed that each time the scrollView is scrolled, this method is called.
Is that the correct behaviour or do I have mistakes in my code? If it is the default behaviour, isn't this a performance killer?
Sincerely,
heinrich
...
I've used [[self navigationController] setTitle:@"Test Title"] to no avail. This is the same way I do it in the rest of my app. What could cause this?
...
I found this question http://stackoverflow.com/questions/584538/how-to-show-button-done-on-number-pad-on-iphone and the solution works in the simulator but not on the device.
Is there any way to make this work on the device? Using SDK 3.1.3
...
This should be an easy one -- when I use a CGAffineTransformMakeScale on a UIView with width and height = 0.5, it shrinks to the upper left. I need it to shrink around its center. What do I need to do? Thanks!
...
Ok so here's my code, it works great:
- (void)textViewDidChange:(UITextView *)textView{
if (textView==someObject) {
[detailItem setValue:textView.text forKey:@"someObjectAttribute"];
}
The problem is that I have lots of textviews instances to test for and I would prefer to find some other way to consolidate the code. I was thinkin...
I have a button and would like to know its enabled state while stepping through code. This doesn't work in the debugger:
po self.myButton.enabled
It prints:
There is no member named enabled.
Is there another way to print out its state?
...
Is there a way to shrink the font-size in a UITextView if there is too much text? Similar to the UILabel?
...
Hey guys,
How can I figure out which word is at the point where the user tapped on a UIWebView?
I am able to detect the CGPoint for the tap (subclassing UIWindow like this), and I can actually get the DOM element on that point using javascript.
But I know very little of javascript and DOM to figure out how can I actually get which wo...
i have a problem that i have spend about a week trying to solve it, but no luke up to now.
i have a uisearchbar implmented into my table view. and i also have two nsarray, one for tilte and one for discription. when i search through the array of the titles it returns the rights search, but when i click on a row that the search came with...
I have noticed in some of my older apps that in situations where I have added a custom View Controller I have not changed the View Controller class in the application delegate. For example, below I have created a CustomViewController class but have declared viewController as UIViewController.
@interface ApplicationAppDelegate: NSObject ...