Hey guys, I'm working with a UITableViewController, and I have a section of code as follows:
Subject *subject = [[context subjects] objectAtIndex:[indexPath row]];
cell.textLabel.text = [subject name];
cell.showsReorderControl = YES;
return cell;
This code is in the UITableViewDataSource method that returns an UITableViewCell for an...
I have a UITextView that I would like to change the auto capitalization type to words for just the first line of the text and reset it to sentences for every other line. What's the best way to do this?
My initial thought is that I can calculate the average maximum number of letters that would fit on a line and recalculate that once any ...
I'm working on an iPhone app, and one of the buttons is supposed to have a text label on it that changes. When I set the text label programatically as seen below, it's shortened using '...' instead of displaying the full label -- even though there is plenty of room for it on the button.
self.accuracyButton.titleLabel.text=@"User define...
Will this check work on the iPad as well as iPhone? Or is there something else I need to check for iPad OS version. Or is this not the way to check what os the application is being built for.
#if __IPHONE_4_0
// Do stuff
#elif __IPHONE_3_0
// Do 3.0 stuff
#endif
...
Hy, my UIToolbar which I added via the InterfaceBuilder gets been cut if i push to the view, but in the subview's I added via the IB a Toolbar on the bottom side but it cut's it still halfway.
Under the icon there is normally a text..
...
I want to install an app on two phones without plugging and unplugging the devices. Can this be done?
As far as I can tell, the Xcode interface does not have that functionality...
...
How do you create a hyperlink? (iPhone dev)
...
Hi All,
Is there a way to customize the calling dialer interface of iphone to make calls and everything as that the iphone dialer supports by using a public API reference. If there is a way then can anyone please direct me to a proper link where I can read about it. I know
[[UIApplication sharedApplication] openURL:[NSURL URLWithStrin...
I want to add a feature of sending some text via email from my iphone app. please tell me how to proceed. plz tell the steps on how to send email from and to .
thanks
...
Did anyone tried out to use nHibernate with monotouch framework? Are there any issues that I should take in concern? Or this scenario is not possible?
...
I need to build an NSPredicate with many pieces of data. For example in SQL I would do something like the following:
SELECT *
FROM TRANSACTIONS
WHERE CATEGORY IN (categoryList)
AND LOCATION IN (locationList)
AND TYPE IN (typeList)
AND NOTE contains[cd] "some text"
AND DATE >= fromDate
AND DATE <+ toDate
I'm st...
i use this code but nothing shows up!!!!? help
CGRect frame = CGRectMake(0.0,0.0,480,320);
secondview=[[UIView alloc] initWithFrame:frame];
[self.view addSubview:secondview];
[self.view bringSubviewToFront:secondview];
...
I need to be able to read text that has been tagged using XML for formatting and display it on the iPad formatted. The one trick is that I need to support footnotes.
I need to be able to read source, parse source, create attributed string for source, create lines. Then I need to write lines to either the text or footnotes until the scre...
I need to get, is a character already in the range. The character string is of type NSMuttableString.
For example, I have a string of "52.648" and I need to know is a "." symbol is already in the string. How can I do it?
...
I have an app which displays 10 images and each image is associated with a button and a URL link. I would like to release this app, but be able to update the images and links via the web without needing to do an update to the app.
I know that I can pull images from the web like so:
NSURL *url = [NSURL URLWithString: @"http://example.co...
Hi everyone,
I created a UIScrollView / UIPageControl .xib scrolling between 12 images. At the bottom of the .xib is a "Submit" button that would save the value of the scroll view in a web service.
How can I get the "submit" button to grab that value?
Thanks in advance!
...
i use this code to check if any objects exist in my NSMutableArray
if yes i remove them all but it crashes although there are objects why?
if([NSMutableArray1 count]==1)
{
[poemoptionslist removeAllObjects];
}
if ([NSMutableArray1 count]==0)
{
[poemoptionslist addObject: final1];
}
CONSOLE OU...
I have an app that can be started up by clicking a link from outside the app. Before iOS 4 this worked fine. But now that you have to implement applicationWillEnterForeground, I'm having problems. The problem I have is going from this method to the handleOpenURL method.
I have no problems when didFinishLaunchingWithOptions is called bec...
I have a Core Data object, card, which has a child relationship relatedCards, which references other card objects. I am trying to get Core Data to give me an NSArray of the relatedCards' ObjectID values only—not the other property values for the cards. I know that one option is to run a fetch request such as:
Card *myCard = <something>
...
My app is retrieving text from a web service in chunks. I am displaying the formatted text using a UIWebView. So far so good.
My problem is as each chunk arrives, I need to refresh the web view with the new content. I am using KVO to observe changes in the text, and when the text changes I'm calling
[self loadHTMLString:self.log.text b...