dsxniubility / sxnews Goto Github PK
View Code? Open in Web Editor NEWHigh imitation Neteasy News. (include list,detail,photoset,weather,feedback)
License: MIT License
High imitation Neteasy News. (include list,detail,photoset,weather,feedback)
License: MIT License
能否留个qq
就是你Readme中界面的那个。
与服务器断开连接
CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the target 81 - 网易新闻
to Pods/Target Support Files/Pods-81 - 网易新闻/Pods-81 - 网易新闻.release.xcconfig
or include the Pods/Target Support Files/Pods-81 - 网易新闻/Pods-81 - 网易新闻.release.xcconfig
in your build configuration.
[!] The 81 - 网易新闻 [Release]
target overrides the OTHER_LDFLAGS
build setting defined in Pods/Target Support Files/Pods-81 - 网易新闻/Pods-81 - 网易新闻.release.xcconfig'. This can lead to problems with the CocoaPods installation - Use the
$(inherited)` flag, or
- Remove the build settings from the target.
调试时出现这个错误 [ application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist.
打开Capabilities -> Background Modes -> ON, 勾上最后2项
再去运行程序就不会有这个错误提示了。
SXDetailPage中的dealloc方法就没被调用过,没查到是哪里循环引用了……
是因为SB的问题么?没怎么用过SB
你好,大神 这个项目看起来还好 但能问一下吗?这个项目是做什么的吗?有性能数据指标的吗?
PhotoSet/Page/SXPhotoSetPage.m中的mostColor实例方法,243行,取点像素那里。因为获取context的data之后,立马释放掉了context,导致获取到的data变为了""空串,导致接下来的for循环中取色crash
sundy:SXNews-master sundy$ pod update
Update all pods
Re-creating CocoaPods due to major version update.
Updating local specs repositories
Analyzing dependencies
[!] The dependency ReactiveCocoa (= 2.5)
is not used in any concrete target.
The dependency AFNetworking (= 2.5.4)
is not used in any concrete target.
The dependency MJExtension (= 2.0.4)
is not used in any concrete target.
The dependency MJRefresh (= 3.1.0)
is not used in any concrete target.
The dependency SDWebImage (= 3.7.5)
is not used in any concrete target.
The dependency FDFullscreenPopGesture (= 1.1)
is not used in any concrete target.
The dependency UITableView+FDTemplateLayoutCell
is not used in any concrete target.
sundy:SXNews-master sundy$ pod install
Re-creating CocoaPods due to major version update.
Analyzing dependencies
[!] The dependency ReactiveCocoa (= 2.5)
is not used in any concrete target.
The dependency AFNetworking (= 2.5.4)
is not used in any concrete target.
The dependency MJExtension (= 2.0.4)
is not used in any concrete target.
The dependency MJRefresh (= 3.1.0)
is not used in any concrete target.
The dependency SDWebImage (= 3.7.5)
is not used in any concrete target.
The dependency FDFullscreenPopGesture (= 1.1)
is not used in any concrete target.
The dependency UITableView+FDTemplateLayoutCell
is not used in any concrete target.
sundy:SXNews-master sundy$
在左右滑动时候能切换控制器, 那怎么做到我一进控制器默认就是第二个子控制器?
代码定位:Method: 0x100044000 @ Offset: 139748 in Address: 0x100044000
崩溃原因:attempt to insert row 2 into section 1, but there are only 2 rows in section 1 after the update
就是那个新闻页面上的 最顶部的 新闻头条中的 四个图片(我看网易的上面也是四个)循环轮播的那个怎么个实现,目前在你的项目中就是一个UIImageView,嗯 我知道是这是demo,仿, 因为我是个新手,刚入门,如果要做同样真实效果的那种网易的无限图片循环,在你的这个项目中该如何实现呢 谢谢!
你好,我看到网易新闻的新闻详情页里面,点击图片可以放大图片,并且再点击一下图片就回到了原来的位置,请问你现在这个框架有这个功能吗?
Hi,董铂然
你的程序在真机和模拟器上出现闪退现象
但在编译时并未报错,在数据加载过程中运行崩溃,疑似接口有误
请查验 : )
为什么程序下载之后 连编译都通不过呢 ?
运行之后报错
diff: /../Podfile.lock: No such file or directory
diff: /Manifest.lock: No such file or directory
error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.
怎么调啊?
之前项目也植入OneAPM, 但是导致3D Touch奔溃, 已经联系他们了, 不知道解决了没有
这个程序之前看的时候还好好的,今天下午打开时候不到一分钟 没有任何操作也自动崩溃。重新在github上面下载下来的也是。博主大大再运行下看看是不是也有这个问题
@implementation SDWebImageManager
(id)sharedManager {
static dispatch_once_t once;
static id instance;
dispatch_once(&once, ^{
instance = [self new];
});
return instance;
@dsxNiubility @ NSURLCache *cache = [NSURLCache sharedURLCache];
}
你在这里自己加的NSURLCache *cache = [NSURLCache sharedURLCache]; 有必要么
OCLint运行不了 报错:Shell Script Invocation Error Group, Command /bin/sh failed with exit code 127 是什么原因
ld: library not found for -lPods
clang: error: linker command failed with exit code 1 (use -v to see invocation)
内容如下
source 'https://github.com/CocoaPods/Specs.git'
inhibit_all_warnings!
platform :ios, '7.0'
target '81 - 网易新闻' do
pod 'ReactiveCocoa'
pod 'AFNetworking’,’2.5.4’
pod 'MJExtension'
pod 'MJRefresh'
pod 'SDWebImage'
pod 'FDFullscreenPopGesture'
pod 'UITableView+FDTemplateLayoutCell'
end
之前的Podfile貌似不能用诶
js与webView交互应该可以做到,可以参考webViewjavascriptBridge,这样就更完美了
博主,在cocoapods 1.0. ---beta 版,需要指定 target 为 "81 - 网易新闻", 你为什么不配置好呢?
UIWindow *win = [UIApplication sharedApplication].windows.firstObject;
[win addSubview:rightItem];
横竖屏切换存在很多bug。
您好 请问一下 我的Xcode是6.4版本 ,是不是版本要更新?
想用模拟器运行一下,出现了这个错误。朋友,这个是什么库?这个错误怎么处理?
iphone4s下天气页面底部6个按钮位置错乱
首页用的scrollview,不需要复用吗??
你的循环利用代码在那里 ,我找了好久没找到
您好 对于网易原版的添加标签那一块 添加栏目的动画交互如何实现? 请问大神的思路
我想研究下你的这个项目,但是注释有点少。
(void)showInWebView
{
NSMutableString *html = [NSMutableString string];
[html appendString:@""];
[html appendString:@""];
[html appendFormat:@"<link rel="stylesheet" href="%@">",[[NSBundle mainBundle] URLForResource:@"SXDetails.css" withExtension:nil]];
[html appendString:@""];
[html appendString:@""];
[html appendString:[self touchBody]];
[html appendString:@""];
[html appendString:@""];
[self.webView loadHTMLString:html baseURL:nil];
}
我看了下,图文混排是webview去实现的,但是为什么不更直接点使用访问url的 方式呢?而是去拼接body内容去解释?为什么要这么做?
it helps me a lot
从无bar页面侧滑到有bar页面。有bar界面的bar紧贴着右边,而下面的视图控制器确是从中间开始的。查看了下内部的方法,找不准是哪个方法,你有办法解决么。
升级xcode7后运行的时候就提示Application windows are expected to have a root view controller at the end of application launch. 在ios9+以上真机run导致闪退。
解决办法:在didFinishLaunchingWithOptions 函数后面加入 [self.window makeKeyAndVisible]; 即可
(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
。。。。。。
[self.window makeKeyAndVisible];
return YES;
}
首页
滑动页面始终少一个
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.