Hi,
I 'm a iphone programming newbie. I m trying to implement an app with multi-level tableviews.
The idea is if someone selects something on the first screen say then a new view opens(tableview)
car make> list of models
Honda > Acura, S2000,accord ...
My challenge is to show the list of models in a new tableview & secondly ch...
Im trying to use Date Formatters (NSDateFormatter), but I keep getting this error:
Program received signal: “EXC_BAD_ACCESS”.
Data Formatters temporarily unavailable, will re-try after a 'continue'. (Unknown error loading shared library "/Developer/usr/lib/libXcodeDebuggerSupport.dylib")
...
I have a view with navigation bar control on the top. The view is in the second level with a "back" button is displayed on the left by default. In my view class, I added a default navigation edit button on the right:
self.navigationbarItem.rightButtonItem = self.editButtonItem;
with this line of code, an edit button is on the right si...
Hi all:
I have recently started creating an iPhone application using Appcelerator's Titanium. Since the application is essentially all JS, I needed some advice on how I should organize this project.
It's becoming very easy to just create long procedural files for each view in the application. Is there a way I can incorporate MVC, or so...
I'm retrieving a key from an object that looks like this:
po obj
{
TypeID = 3;
TypeName = Asset;
}
The key value is being retrieved like this:
NSString *typeId = (NSString*)[obj objectForKey:@"TypeID"];
Rather than typeId being an NSString, it is an NSDecimalNumber. Why is that?
How do I convert it to an NSString?
...
I have a bit of a strange problem. I am trying to send in-app email. I am also using Cocos2d. It works, so far as I get the mail window and I can send mail, but it is extremely slow. It seems to only accept touches every second or so. I checked the cpu usage, and it is quite low. I paused my director, so nothing else should be happ...
Hi fellas,
I'm in the midst of an iPhone app that needs to have 4 separate UITableView objects sharing access to one UISearchBar in the first section and first row of the aforementioned UITableView objects.
I have tried to offset the UITableView's frame by 44 pixels, then adding the search bar as a subview of my UIViewController's view...
I just found the IUI project on google code where you can build websites that look like iPhone apps.
I have an asp.net MVC website already built. When a user clicks on my website from an iPhone, i want to redirect them to another page that is targeted to the iPhone.
how can i do this detection and redirection?
...
Hello,
I'm using NSFetchedResultsController to fetch Message entities with Core Data. I want my tableview to group the messages by an attribute called ownerName. This works fine in the sense that I get a proper UI dispalying appropriately named sections. I can achieve this with the code below:
NSSortDescriptor *sortDescriptor = [[NS...
Do older iPods and iPhones have a frame rate of 60fps?
I'm finding that all the methods for calculating time intervals on iPhone (cftimeinterval, nstimer, timesince1970, etc) are all giving me bad data, so I've decided assume a frame rate of 60, just not sure if older apple devices can run at this.
...
Hi
I have a custom keyboard I want to show when the user taps a UITextField. But at the same time I want to show the cursor in the textfield. If if return a NO for canBecomeFirstResponder, it doesn't show the default keyboard but doesn't show the cursor either.
Can someone please help me out?
Thanks.
...
I'm a newbie and I need some help.
I want to display a popup image over a given UIView, but I would like it to behave like the UIAlertView or like the Facebook Connect for iPhone modal popup window, in that it has a bouncy, rubbber-band-like animation to it.
I found some code on the net from someone who was trying to do something simil...
In a previous question, I was looking for an alternative to modifying how "no date" was being stored in the date attribute of my NSManagedObject subclass. Previously, I had assigned nil to that attribute when a user didn't assign a date. In order to address sorting issues when using NSFetchedResultsController, I have decided to assign ...
So, I want my app starts with a UIViewController(without seeing a tabbar), and then enter a UITableView with navigationbar and tabbar. the problem is that the Tabbar is visible at the app starts up, anyone can help on this will be very appreciated...
...
Hi, I have several movies that are played and presented using this code.
As you can see I also have removed the default movie controls and have added a custom overlay which essentially just stops the video.
Here is my problem... When I stop the movie with my custom overlay button, I don't seem to be getting the 'MPMoviePlayerPlayba...
I have a small app, where user can make some calculations and solve equations. For example, if in a square equation discriminant is less than zero, the x1 and x2 values are "nan", so when I assign x1 and x2 values to UILabels they show "nan" as well. Writing a lot of if's like
if(D<0) [label setText:[NSString stringWithFormat: @"No solu...
Hi guys,
I've been stumped by the code below. I pass a string date to a UIDatePicker which seems to work on most devices, yet on some, it crashes the app.
here's the code
NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init];
[dateFormat setDateFormat:@"HH:mm"];
NSDate *date = [dateFormat dateFromString:dateStr];
[timePicker se...
I wanted to allow for a method to get called, if a finger was dragged from outside into the bounds of a control. I thought UIControlEventTouchDragEnter would do it, but it doesn't seem to. Does anyone know if there is a way to trigger an action based on a tap sliding into a control?
This is what I was trying, but got no calls to my -f...
I'm considering upgrade SDK 3.1.3 to 3.2 because 3.1.3 disappeared on Apple's website.
I used 3.2 SDK beta once, and any project launched iPad simulator only. (even iPhone project)
Is there iPhone simulator on SDK 3.2?
Or how to test iPhone app on SDK 3.2?
PS.
I have to check this before install because this is my main workstation, so ...
My iPhone app formats an NSDecimalNumber as a currency using setCurrencyCode, however another screen displays just the currency symbol. Rather than storing both the currency code and symbol, is it possible to derive the symbol from the code? I thought the following might work, but it just returns the symbol as $:
currencyCode = [dictPri...