Below is what I want to implement:
The main screen of my app is a UITableView. Each row in the table view is a category, when you click the detail disclosure button in the row, you can see a bunch of items under this category in the category detail view.
Now in the main screen, I click the "+" button in navigation bar to create a new c...
I have no idea about it, but if that was possible (like Flash, for example), then that would be really cool.
I have an view-based app where I need probably some OpenGL ES capabilities, but don't want to have fullscreen OpenGL ES. I just need it at certain small areas for drawing little charts and other stuff that may be hard to do with ...
So I have a UITextView that is cutting off the text in the top line. and each subsequent return takes the next line to the same position where it is cut off.
I cant see how this is happening following is all the configuration that i have set for the object.
ResolveNotes = [[UITextView alloc] init];
ResolveNotes.backgroundColor = [UI...
Looking for a way to not have a publicly hosted video be used in an iphone application. Youttube or Vimeo seem like the obvious choices for free hosting of video, but the public nature is discouraging. Want to charge for video content, so making it free to all defeats the purpose.
Any ideas?
...
Hi,
I'm implementing swipe gestures in my customtableviewcell control and so I hvae to implement touchesBegan event.
I'm able to implement the swipes, but unfortunately, because the touchesBegan gets handled in the customcell, i'm not getting a didSelectRowAtIndexPath message on the tablecontroller. If the touchesBegan method is disabled...
This should be a simple one, but my brains are a bit hazy today:
I have an NSString * myOldString = @"This is a string (and this part is between brackets)"
Now, I want to truncate the string in such a way, that basically everything between the brackets, including the brackets, is truncated.
More precisely: I don't care what is happen...
Hi,
I'm implementing a notes manager application which has a tableView in a tabBar where the main information of its notes is displayed. When accessing to one note, you can edit its properties. In one button of the tabBar you can choose the way the notes are displayed in the tableView.
The problem I have is that I don't know how to re...
I have a UISegmentedControl on a black UIToolbar. I have set the style to Bar and set the background color to clear (also tried black). I have tried setting the tintColor clear (also tried black). My buttons turn black to match the black UIToolbar. However, the buttons no longer indicate a clicked state like they do when the UISegmen...
I have a varchar column in an sqlite datbase. A particular row of text has a backslash, which is used with "\n" for a carriage return in a UITextView. When the value is read from the database via a SELECT:
myobject.text = [NSString stringWithUTF8String: (char *)sqlite3_column_text(selectstmt, 2)];
The backslash is escaped and looks ...
Is Android going to gain momentum or will the iPhone continue to dominate mobile application sales?
I want to develop iPhone apps, but the learning curve is too steep to be productive quickly. I get the feeling that I have to already be a Mac developer since I've never done memory cleanup beyond removing an event listener.
Is android ...
I've been working with a UIScrollView and have about 200 items to scroll through...so far. This doesn't work since it takes around 45 seconds to load all of the views. I've tried loading the first 20 (about 4 seconds) on the main thread then load in blocks of 50 on other threads. I get the first 20 to scroll through but the others don...
There is already a hack to get serial communications working through the iPhone's 30-pin connector, which requires a jailbroken phone. Looking at the the iPhone development website, the 3.0 SDK seems to be a bit friendlier when it comes to communication with 3rd party hardware.
I'm not part of the developer program so can't dig into an...
For the method
[NSThread detachNewThreadSelector:@selector(method:) toTarget:self withObject:(id)SELECTOR];
How do I pass in a @selector? I tried casting it to (id) to make it compile but it crashes in runtime.
More specifically, I have a method like this
+(void)method1:(SEL)selector{
[NSThread detachNewThreadSelector:@selector(m...
I have created a static library to house some of my code like categories.
I have a category for UIViews in "UIView-Extensions.h" named Extensions.
In this category I have a method called:
- (void)fadeOutWithDelay:(CGFloat)delay duration:(CGFloat)duration;
Calling this method works fine on the simulator on Debug configuration.
Howe...
I'm making a simple rss reader for the iPhone. The feed (http://feeds.feedburner.com/foksuk/gLTI) contains a reference to images that I want to show in my TableView.
By default, as far as I understand, the iPhone only tries to load images when they are needed: it will only load the images for the rows that are displayed. Only when the us...
Any idea from a code design standpoint why the internal implementation of UITextView uses string but not mutable string when its content is meant to change often?
...
In Objective-C, how do you rewire a class's instance method to call a method in another class?
Say a UIView class A contains another UIView class called childA. I want it so that when childA's drawRect is called, a method in class A is invoked without having to subclass childA and do the desired call in its drawRect there. How can thi...
In UIView, I want to draw text into its containing view using drawInRect:withFont:lineBreakMode call but that operates on the current context only. Is it possible to draw that text into a subview from current view? The subview is a generic UIView instance and I don't really want to create a new UIView-derived class just for this purpos...
I’m almost ready to offer an IPhone application on the Apple App. Store and make my millions. ;)
For those of you that have gone before, have you formed a business (LLC or proprietorship) to keep things legal?
...
I have problem understanding this in the documentation for UIScrollView:
"The object that manages the drawing of content displayed in a scroll view should tile the content’s subviews so that no view exceeds the size of the screen. As users scroll in the scroll view, this object should add and remove subviews as necessary."
Isn't the po...