I'm looking at Apple's "AdvancedTableViewCells" sample project, and in looking at the RootViewController, I noticed the nib loading for the IndividualSubviewsBasedApplicationCell. I was wondering about that nib loading... what is it loading into? There is no handle/variable. I understand the lines below where cell is assigned to the view...
I have got value from the xml 2009-11-23T05:24:41.000Z.Now i want to display string like this Wed, Nov 4, 2009 8:00 PM - Wed, Nov 4, 2009 9:00 PM
How it possible?
...
so I am working on a jb app that requires writing to the file system (/var/mobile/Library/Downloads specifically), and I tried hard coding it in like someone recommended but I cant seem to make it work, i know how to do so to the Documents directory in my app but not the file system, any ideas? thank you!
edit 1 - as reference: the way ...
Hello all,
I am developing an application which uses both video recording and photo shoting.So i want to show buttons according to os for this i implement these methods.It's working fine when i build for OS 3.1 but when i build for OS 3.0 it shows errors
here are the methods
if ([self videoRecordingAvailable])
{
imagePi...
Okay, I have a feeling that you guys'll be able to quickly point out why I'm so confused about this, but I have a question as to why the following does NOT result in a compiler error or warning:
NSString * intValue = [ NSString stringWithFormat:@"int = %i", [ [ self.selectedObject valueForKey:name ] integerValue ] ];
selectedObject is...
Hello all,
I have one strange problem.I have two UItextfields in my view and a button.When i click on button.I have changed the frame of view in animation block but it's resigning later here is my code if someone told me about this i'll be thankful
-(IBAction)SignINClicked
{
[Email resignFirstResponder]; //TextField
[Password resig...
i am currently starting to learn Xcode and objective-c and i am reading three different books on that topic currently. All of these books refer to a file called "AppDelegate" (My_First_ProjectAppDelegate.m, My_First_ProjectAppDelegate.h) which are said to be "created with the Project" (i am creating a "Cocoa Application"). These files ar...
The current value of a variable may be "X" or "Y".
A function needs to make sure it is "X".
In general -- with say C integers-- which is more efficient:
"if not X, then set to X"
"just set it to X anyway"
And does that change when the "value" is an Objective-C (immutable) object that has to get re-created?
And in both cases is thi...
Hi,
I have build cocoa application in 10.4.4 using (mac10.3.9sdk xcode version:2.2.1,universal binary), but when im trying to invoke the application in 10.3.9 the application is not getting invoked.
Can you please tell me what would be the probable mistakes or reasons of its not getting invoked???or How can i trouble shoot the issue?
...
Why is this loop giving me always 0 ( columns and rows has a value = 0 always )? there's any mistake? I can't find it!
- (void)drawView:(UIView *)theView
{
glLoadIdentity();
glClearColor(1.0, 1.0, 1.0, 1.0);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
for (int columns = 0; columns < 6; columns++)
{
...
Can someone point me in the direction of how to implement an "autocomplete" search interface on the iPhone. I am assuming I will need to use a NSTimer to periodically check what has been typed and then submit that partial string to my data source and then display those.
I need to connect it up with an existing web service returning JSON...
What is a good way to get a reference to "singleton" objects in Objective-C? Note, specifically, I am not referring to the singleton pattern, I am referring to objects of which there are normally only one instance. This specifically applies to application models. For example, in a cooking app, I would like a class (RecipeModel) that can ...
Hi,
I'm creating an application which uses an NSTokenField. I need autocompletion. I'm using an NSURLRequest to request data from http://stackoverflow.com/filter/tags?_=<timestamp>&limit=6&q=<str_to_autocomplete>&timestamp=<timestamp>
Where <timestamp> is the current timestamp, an <str_to_autocomplete> is ...
I was wondering if there is a built-in font for Japanese kana in the iPhone OS?
I was wanting to display kana characters and figured it would be easier to generate them in a UILabel as text versus creating a .PNG and display them in a UIImageView. I would want this to be available to non-Japanese iPhones/iPods. I'm not 100% aware if...
Hello. I am making an iPhone app that uses a few NSArrays. Right now I have to generate the arrays in each method. I know there has to be an more efficient way of doing this, like having the NSArrays created during initialization and then being available to all methods after that. The problem is, that when I create the NSArrays in th...
Hi there I am using a segmented control in my app. I am also setting segmented controls setImage property to set an image for each segment of the control. I am not sure how to set an Image for its UIControlStateSelected state. I mean I would like to set an image for my segmented controls selected state. Please let me know how do I do tha...
Hi there I using a segmented control on a view. With the help of this segmented control I would like to display to different tables on my view, Suppose I have two segments in my table on tap of segment 1 I would like to display table 1 and on tap of segment 2 I would like to display table 2 my table 1 is a Plain table and table 2 is a gr...
Seem like I'm not clearing the image correctly or something. On the other hand the view takes to much to render using the cos function. I appreciate if you can guide me to optmize the code with best practices. Thanks
And I would like to share with you this link: http://iphonedevelopment.blogspot.com/2009/05/opengl-es-from-ground-up-tabl...
I'll get to this quick: I have an application for the iPhone OS 3.1.2 that will reduce fractions. I have 4 outlets:
oTop and oBottom: two UITextFields, stands for originalTop and originalBottom.
rTop and rBottom: two UILabels, stands for reducedTop and reducedBottom.
Here is the code I use:
-(IBAction)reduce {
int numerator = [[oTop...
How can i calculate the number of days in a year for any calendar, not just gregorian.
I have tried this
NSUInteger *days = [[NSCalendar currentCalendar] rangeOfUnit:NSDayCalendarUnit inUnit:NSYearCalendarUnit forDate:[NSDate date]];
but that gives me the number of days in the current month instead of the number of days in the current ...